Resolved issue where EMS files were missed if they didnt have the expected suffix. RPS-20

This commit is contained in:
Patrick Fic
2020-10-27 10:37:31 -07:00
parent 41f0682fd5
commit 0eb5d5dd47
3 changed files with 184 additions and 152 deletions

View File

@@ -16,6 +16,11 @@ async function GetListOfEstimates() {
const FilteredListOfSummarizedEstimates = ListOfSummarizedEstimates.filter(
(j) => !j.ERROR
);
log.log(
"Number of estimates filtered on file scan due to error: ",
ListOfSummarizedEstimates.length - FilteredListOfSummarizedEstimates.length
);
return FilteredListOfSummarizedEstimates;
}
@@ -71,4 +76,4 @@ async function DeleteAllEms() {
}
exports.GetListOfEstimates = GetListOfEstimates;
exports.DeleteAllEms = DeleteAllEms
exports.DeleteAllEms = DeleteAllEms;