Browse Source

Remove extra response from backend when deleting recipes.

Lee Morgan 5 years ago
parent
commit
f7ecdff37d
1 changed files with 1 additions and 3 deletions
  1. 1 3
      controllers/recipeData.js

+ 1 - 3
controllers/recipeData.js

@@ -126,10 +126,8 @@ module.exports = {
                 }
 
                 merchant.save()
-                    .then((updatedMerchant)=>{
-                        return res.json({});
-                    })
                     .catch((err)=>{
+                        console.log(err);
                         return res.json("ERROR: UNABLE TO SAVE DATA");
                     })