Bug Fixed, using env

This commit is contained in:
Luis Fernando Molina committed 2019-09-24 11:30:29 +02:00
1 parent e76e3a3568
commit c643f87263
1 file changed
+2 -2
+2 -2
View File
@@ -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) {