Explorar el Código

Remove extra response from backend when deleting recipes.

Lee Morgan hace 5 años
padre
commit
f7ecdff37d
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  1. 1 3
      controllers/recipeData.js

+ 1 - 3
controllers/recipeData.js

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