From dc7aae78672cb5e5317cb20cd0624e682e120d40 Mon Sep 17 00:00:00 2001 From: Matias Date: Mon, 25 Mar 2019 17:02:48 +0100 Subject: [PATCH] Adding Begin Time to indicator --- Run.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Run.js b/Run.js index 980e7dd72..d47d89476 100644 --- a/Run.js +++ b/Run.js @@ -16,13 +16,13 @@ global.MARKET = { process.on('uncaughtException', function (err) { console.log('[INFO] Run -> uncaughtException -> err.message = ' + err.message); console.log('[INFO] Run -> uncaughtException -> err.stack = ', err.stack); - return; + throw new Error() }); process.on('unhandledRejection', (reason, p) => { console.log('[INFO] Run -> unhandledRejection -> reason = ' + reason); console.log('[INFO] Run -> unhandledRejection -> p = ' + JSON.stringify(p)); - return; + throw new Error() }); process.on('exit', function (code) { @@ -92,7 +92,8 @@ function readExecutionConfiguration() { month: process.env.MONTH } let noTime = { - run: "false" + run: "false", + beginDatetime: process.env.BEGIN_DATE_TIME } let fixedInterval = { run: "false",