Lee Morgan пре 6 година
родитељ
комит
095ea1a0b3

+ 0 - 1
controllers/merchantData.js

@@ -343,7 +343,6 @@ module.exports = {
                     })
             })
             .catch((err)=>{
-                console.log(err);
                 return res.json("Error: your data could not be retrieved");
             });        
     },

+ 0 - 1
controllers/recipeData.js

@@ -100,7 +100,6 @@ module.exports = {
                 return res.json({});
             })
             .catch((err)=>{
-                console.log(err);
                 return res.json("Error: unable to update your recipe");
             })
     }

+ 1 - 3
controllers/renderer.js

@@ -152,9 +152,7 @@ module.exports = {
                         .then((transactions)=>{
                             return res.render("dashboardPage/dashboard", {merchant: merchant, transactions: transactions})
                         })
-                        .catch((err)=>{
-                            console.log(err);
-                        });
+                        .catch((err)=>{});
                         
                 }else{
                     req.session.error = "Error: WEBSITE PANIC";

+ 0 - 3
controllers/transactionData.js

@@ -148,16 +148,13 @@ module.exports = {
 
                 Transaction.create(newTransactions)
                     .then((transactions)=>{
-                        console.log("completed");
                         return res.redirect("/data");
                     })
                     .catch((err)=>{
-                        console.log(err);
                         return;
                     });
             })
             .catch((err)=>{
-                console.log(err);
                 return;
             });