Lee Morgan 6 년 전
부모
커밋
44462891d8
5개의 변경된 파일1개의 추가작업 그리고 7개의 파일을 삭제
  1. 0 1
      controllers/orderData.js
  2. 1 1
      controllers/renderer.js
  3. 0 3
      views/dashboardPage/js/newRecipe.js
  4. 0 1
      views/dashboardPage/js/orders.js
  5. 0 1
      views/dashboardPage/js/transactionDetails.js

+ 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(()=>{