From 2ed7dcf10c41e67d8e4e78c1c98754c2d23f4cfc Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Mon, 2 Jul 2018 07:02:09 +0200 Subject: [PATCH] End of the Month BUG corrected --- Multi-Period-Daily/User.Bot.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Multi-Period-Daily/User.Bot.js b/Multi-Period-Daily/User.Bot.js index 4f2659387..4a84367a2 100644 --- a/Multi-Period-Daily/User.Bot.js +++ b/Multi-Period-Daily/User.Bot.js @@ -119,7 +119,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; @@ -155,7 +155,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; @@ -190,7 +190,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;