소스 검색

Merge branch 'master' into development

Lee Morgan 6 년 전
부모
커밋
a2d7e529dc
3개의 변경된 파일6개의 추가작업 그리고 3130개의 파일을 삭제
  1. 6 1
      controllers/renderer.js
  2. 0 3128
      views/dashboardPage/bundle.js
  3. 0 1
      views/dashboardPage/js/transactions.js

+ 6 - 1
controllers/renderer.js

@@ -67,6 +67,7 @@ module.exports = {
             .populate("inventory.ingredient")
             .populate("recipes")
             .then(async (merchant)=>{
+                console.log("merchant found");
                 let promiseArray = [];
                 if(merchant.pos === "clover"){
                     const subscriptionCheck = axios.get(`${process.env.CLOVER_ADDRESS}/v3/apps/${process.env.SUBLINE_CLOVER_APPID}/merchants/${merchant.posId}/billing_info?access_token=${merchant.posAccessToken}`);
@@ -157,9 +158,11 @@ module.exports = {
                         });
                 }
 
+                console.log("returning merchant");
                 return Promise.all([merchant.save()].concat(promiseArray));
             })
             .then((response)=>{
+                console.log("response after clover stuff");
                 let date = new Date();
                 let firstDay = new Date(date.getFullYear(), date.getMonth() - 1, 1);
 
@@ -175,6 +178,7 @@ module.exports = {
                     }}
                 ])
                     .then((transactions)=>{
+                        console.log("found all transactions");
                         response[0]._id = undefined;
                         response[0].posAccessToken = undefined;
                         response[0].lastUpdatedTime = undefined;
@@ -182,9 +186,10 @@ module.exports = {
 
                         return res.render("dashboardPage/dashboard", {merchant: response[0], transactions: transactions});
                     })
-                    .catch((err)=>{});
+                    .catch((err)=>{console.log(err)});
             })
             .catch((err)=>{
+                console.log(err);
                 req.session.error = "ERROR: UNABLE TO RETRIEVE USER DATA";
                 return res.redirect("/");
             });

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 3128
views/dashboardPage/bundle.js


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

@@ -145,7 +145,6 @@ module.exports = {
                 }
             })
             .catch((err)=>{
-                console.log(err);
                 banner.createError("UNABLE TO DISPLAY THE TRANSACTIONS");
             })
             .finally(()=>{

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.