Преглед на файлове

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)=>{