Lee Morgan 6 anos atrás
pai
commit
44462891d8

+ 0 - 1
controllers/orderData.js

@@ -118,7 +118,6 @@ module.exports = {
                 res.json(response);
             })
             .catch((err)=>{
-                console.log(err);
                 return res.json("ERROR: UNABLE TO SAVE ORDER");
             });
 

+ 1 - 1
controllers/renderer.js

@@ -12,7 +12,7 @@ module.exports = {
     Renders landingPage
     */
     landingPage: function(req, res){
-        let activity = new Activity({
+        new Activity({
             ipAddr: req.headers['x-forwarded-for'] || req.connection.remoteAddress,
             merchant: req.session.user,
             route: "landing",

+ 0 - 3
views/dashboardPage/js/newRecipe.js

@@ -1,6 +1,5 @@
 module.exports = {
     display: function(Recipe){
-        console.log("display");
         let ingredientsSelect = document.querySelector("#recipeInputIngredients select");
         let categories = merchant.categorizeIngredients();
 
@@ -27,7 +26,6 @@ module.exports = {
 
     //Updates the number of ingredient inputs displayed for new recipes
     changeRecipeCount: function(){
-        console.log("doing things");
         let newCount = document.getElementById("ingredientCount").value;
         let ingredientsDiv = document.getElementById("recipeInputIngredients");
         let oldCount = ingredientsDiv.children.length;
@@ -103,7 +101,6 @@ module.exports = {
                 }
             })
             .catch((err)=>{
-                console.log(err);
                 banner.createError("SOMETHING WENT WRONG. PLEASE REFRESH THE PAGE");
             })
             .finally(()=>{

+ 0 - 1
views/dashboardPage/js/orders.js

@@ -37,7 +37,6 @@ module.exports = {
                     }
                 })
                 .catch((err)=>{
-                    console.log(err);
                     banner.createError("SOMETHING WENT WRONG. TRY REFRESHING THE PAGE");
                 })
                 .finally(()=>{

+ 0 - 1
views/dashboardPage/js/transactionDetails.js

@@ -58,7 +58,6 @@ module.exports = {
                 }
             })
             .catch((err)=>{
-                console.log(err);
                 banner.createError("SOMETHING WENT WRONG. PLEASE REFRESH THE PAGE");
             })
             .finally(()=>{