Ver Fonte

Remove some console logs

Lee Morgan há 6 anos atrás
pai
commit
7ab2917e72
1 ficheiros alterados com 0 adições e 5 exclusões
  1. 0 5
      controllers/renderer.js

+ 0 - 5
controllers/renderer.js

@@ -33,7 +33,6 @@ module.exports = {
             req.session.error = "You must logged in to view that page";
             return res.redirect("/");
         }
-        console.log("Session good, start of function");
 
         Merchant.findOne({_id: req.session.user})
             .populate("inventory.ingredient")
@@ -46,11 +45,9 @@ module.exports = {
                 }
             })
             .then((merchant)=>{
-                console.log("Got the merchant");
                 if(merchant.pos === "clover"){
                     axios.get(`https://apisandbox.dev.clover.com/v3/merchants/${merchant.posId}/orders?filter=clientCreatedTime>=${merchant.lastUpdatedTime}&expand=lineItems&access_token=${token}`)
                         .then((result)=>{
-                            console.log("axios to clover returned");
                             let transactions = [];
                             for(let order of result.data.elements){
                                 let newTransaction = new Transaction({
@@ -78,14 +75,12 @@ module.exports = {
                                 transactions.push(newTransaction);
                             }
                             merchant.lastUpdatedTime = Date.now();
-                            console.log("Did all calculations on Clover data");
 
                             merchant.save()
                                 .then((updatedMerchant)=>{
                                     merchant.password = undefined;
                                     res.render("inventoryPage/inventory", {merchant: updatedMerchant, error: undefined});
                                     Transaction.create(transactions);
-                                    console.log("Saved merchant, render page");
                                     return;
                                 })
                                 .catch((err)=>{