Explorar el Código

Almost finished home page

Lee Morgan hace 6 años
padre
commit
ca0b02fc13
Se han modificado 1 ficheros con 0 adiciones y 1 borrados
  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);