Billmike/More-Recipes

View on GitHub
server/controllers/reviews.js

Summary

Maintainability
A
0 mins
Test Coverage

Function addReviews has 53 lines of code (exceeds 25 allowed). Consider refactoring.
Invalid

  static addReviews(req, res) {
    return recipes.findById(req.params.recipeId)
      .then((foundRecipe) => {
        if (!foundRecipe) {
          return res
Severity: Major
Found in server/controllers/reviews.js - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status