Explorar o código

merchant last updated time only changed when there are actual updates

Lee Morgan %!s(int64=6) %!d(string=hai) anos
pai
achega
d1a4213ff0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)=>{