Browse Source

Almost finished home page

Lee Morgan 6 năm trước cách đây
mục cha
commit
ca0b02fc13
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  1. 0 1
      controllers/merchantData.js

+ 0 - 1
controllers/merchantData.js

@@ -322,7 +322,6 @@ module.exports = {
         Merchant.findOne({_id: req.session.user})
             .then((merchant)=>{
                 for(let ingredient of req.body){
-                    console.log(ingredient);
                     let updateIngredient = merchant.inventory.find(i => i.ingredient.toString() === ingredient.id);
                     updateIngredient.quantity = (updateIngredient.quantity + ingredient.quantityChange);