server/routes/api/weddingProfile.js
Function updateWeddingProfile
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
wrap(function* updateWeddingProfile(req, res) {
req.checkBody('coverTitle').notEmpty();
req.checkBody('coverImageUrl').isURL();
req.checkBody('weddingDate').isDate();
req.checkBody('giftListContent').notEmpty();