소스 검색

Fix problem with transaction spreadsheets not saving the correct date.

Lee Morgan 5 년 전
부모
커밋
fd8e4ce00c
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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 = [];