Bug fixed with beginingOfTheMarket context variable

This commit is contained in:
Luis Fernando Molina committed 2021-05-21 15:40:37 +02:00
1 parent 4ab1b9d86c
commit 88afcd237e
2 files changed
+3 -2

No files matched your search

@@ -56,6 +56,7 @@ exports.newSuperalgosBotModulesFetchingProcess = function (processIndex) {
}
thisReport = statusDependencies.statusReports.get(reportKey)
contextVariables.beginingOfMarket = thisReport.file.beginingOfMarket
} catch (err) {
TS.projects.superalgos.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).UNEXPECTED_ERROR = err
@@ -837,7 +838,8 @@ exports.newSuperalgosBotModulesFetchingProcess = function (processIndex) {
thisReport.file = {
lastRun: (new Date()).toISOString(),
lastPage: lastPage,
lastFile: contextVariables.lastFile.toISOString()
lastFile: contextVariables.lastFile.toISOString(),
beginingOfMarket: contextVariables.beginingOfMarket
}
if (thisReport.file.beginingOfMarket === undefined) {
@@ -185,7 +185,6 @@ exports.newSuperalgosFunctionLibrariesDataAggregationFunctions = function () {
We get in here when the report already exists, meaning that this process
has succesfully ran before at least once.
*/
contextVariables.beginingOfMarket = new Date(thisReport.beginingOfMarket)
if (contextVariables.beginingOfMarket.valueOf() !== contextVariables.datetimeBeginingOfMarketFile.valueOf()) { // Reset Mechanism for Begining of the Market