Przeglądaj źródła

merchant last updated time only changed when there are actual updates

Lee Morgan 6 lat temu
rodzic
commit
d1a4213ff0
1 zmienionych plików z 1 dodań i 1 usunięć
  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)=>{