InsidersByte/honeymoon-gift-list

View on GitHub
server/routes/api/weddingProfile.js

Summary

Maintainability
A
1 hr
Test Coverage

Function updateWeddingProfile has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      wrap(function* updateWeddingProfile(req, res) {
        req.checkBody('coverTitle').notEmpty();
        req.checkBody('coverImageUrl').isURL();
        req.checkBody('weddingDate').isDate();
        req.checkBody('giftListContent').notEmpty();
Severity: Minor
Found in server/routes/api/weddingProfile.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status