Parcourir la source

merchant last updated time only changed when there are actual updates

Lee Morgan il y a 6 ans
Parent
commit
d1a4213ff0
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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)=>{