Procházet zdrojové kódy

Fix problem with transaction spreadsheets not saving the correct date.

Lee Morgan před 5 roky
rodič
revize
fd8e4ce00c
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      controllers/transactionData.js

+ 2 - 2
controllers/transactionData.js

@@ -140,9 +140,9 @@ module.exports = {
                 });
 
                 if(array[1][0] === undefined){
-                    transaction.date = new Date(array[1][0]);
-                }else{
                     transaction.date = new Date();
+                }else{
+                    transaction.date = new Date(array[1][0]);
                 }
                 
                 let ingredients = [];