From c643f87263d2d3fe83757c4cf4dd1fc0612ea83f Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Tue, 24 Sep 2019 11:30:29 +0200 Subject: [PATCH] Bug Fixed, using env --- Commons.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Commons.js b/Commons.js index 21dc42ae5..79963abbb 100644 --- a/Commons.js +++ b/Commons.js @@ -1993,7 +1993,7 @@ /* Check if we need to execute. */ if (i > candles.length - 10) { /* Only at the last candles makes sense to check if we are in live mode or not.*/ /* Check that we are in LIVE MODE */ - if (process.env.START_MODE === "live") { + if (bot.startMode === "Live") { /* We see if we need to put the actual order at the exchange. */ if (interExecutionMemory.executionContext !== undefined) { switch (interExecutionMemory.executionContext.status) { @@ -2257,7 +2257,7 @@ if (i > candles.length - 10) { /* Only at the last candles makes sense to check if we are in live mode or not.*/ /* Check that we are in LIVE MODE */ - if (process.env.START_MODE === "live") { + if (bot.startMode === "Live") { /* We see if we need to put the actual order at the exchange. */ if (interExecutionMemory.executionContext !== undefined) { switch (interExecutionMemory.executionContext.status) {