Преглед изворни кода

merchant last updated time only changed when there are actual updates

Lee Morgan пре 6 година
родитељ
комит
d1a4213ff0
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      controllers/renderer.js

+ 1 - 1
controllers/renderer.js

@@ -90,8 +90,8 @@ module.exports = {
                                 }
 
                                 transactions.push(newTransaction);
+                                merchant.lastUpdatedTime = Date.now();
                             }
-                            merchant.lastUpdatedTime = Date.now();
 
                             merchant.save()
                                 .then((updatedMerchant)=>{