From 74038512a1bfcfea88b6441b99021f51f171e817 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Mon, 2 Jul 2018 07:01:50 +0200 Subject: [PATCH] End of the month BUG corrected --- Multi-Period-Daily/User.bot.js | 6 +++--- Multi-Period-Market/User.bot.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Multi-Period-Daily/User.bot.js b/Multi-Period-Daily/User.bot.js index 51e213b31..776fe8eb6 100644 --- a/Multi-Period-Daily/User.bot.js +++ b/Multi-Period-Daily/User.bot.js @@ -110,7 +110,7 @@ Read the candles and volumes from Bruce and produce a file for each day and for statusReport = statusDependencies.statusReports.get(reportKey); - if (statusReport === "undefined") { // This means the status report does not exist, that could happen for instance at the begining of a month. + if (statusReport === undefined) { // This means the status report does not exist, that could happen for instance at the begining of a month. logger.write(MODULE_NAME, "[WARN] start -> getContextVariables -> Status Report does not exist. Retrying Later. "); callBackFunction(global.DEFAULT_RETRY_RESPONSE); return; @@ -146,7 +146,7 @@ Read the candles and volumes from Bruce and produce a file for each day and for statusReport = statusDependencies.statusReports.get(reportKey); - if (statusReport === "undefined") { // This means the status report does not exist, that could happen for instance at the begining of a month. + if (statusReport === undefined) { // This means the status report does not exist, that could happen for instance at the begining of a month. logger.write(MODULE_NAME, "[WARN] start -> getContextVariables -> Status Report does not exist. Retrying Later. "); callBackFunction(global.DEFAULT_RETRY_RESPONSE); return; @@ -181,7 +181,7 @@ Read the candles and volumes from Bruce and produce a file for each day and for statusReport = statusDependencies.statusReports.get(reportKey); - if (statusReport === "undefined") { // This means the status report does not exist, that could happen for instance at the begining of a month. + if (statusReport === undefined) { // This means the status report does not exist, that could happen for instance at the begining of a month. logger.write(MODULE_NAME, "[WARN] start -> getContextVariables -> Status Report does not exist. Retrying Later. "); callBackFunction(global.DEFAULT_RETRY_RESPONSE); return; diff --git a/Multi-Period-Market/User.bot.js b/Multi-Period-Market/User.bot.js index e2b72db74..22e66fe8b 100644 --- a/Multi-Period-Market/User.bot.js +++ b/Multi-Period-Market/User.bot.js @@ -121,7 +121,7 @@ statusReport = statusDependencies.statusReports.get(reportKey); - if (statusReport === "undefined") { // This means the status report does not exist, that could happen for instance at the begining of a month. + if (statusReport === undefined) { // This means the status report does not exist, that could happen for instance at the begining of a month. logger.write(MODULE_NAME, "[WARN] start -> getContextVariables -> Status Report does not exist. Retrying Later. "); callBackFunction(global.DEFAULT_RETRY_RESPONSE); return; @@ -157,7 +157,7 @@ statusReport = statusDependencies.statusReports.get(reportKey); - if (statusReport === "undefined") { // This means the status report does not exist, that could happen for instance at the begining of a month. + if (statusReport === undefined) { // This means the status report does not exist, that could happen for instance at the begining of a month. logger.write(MODULE_NAME, "[WARN] start -> getContextVariables -> Status Report does not exist. Retrying Later. "); callBackFunction(global.DEFAULT_RETRY_RESPONSE); return; @@ -192,7 +192,7 @@ statusReport = statusDependencies.statusReports.get(reportKey); - if (statusReport === "undefined") { // This means the status report does not exist, that could happen for instance at the begining of a month. + if (statusReport === undefined) { // This means the status report does not exist, that could happen for instance at the begining of a month. logger.write(MODULE_NAME, "[WARN] start -> getContextVariables -> Status Report does not exist. Retrying Later. "); callBackFunction(global.DEFAULT_RETRY_RESPONSE); return;