Empty time period

This commit is contained in:
Matias committed 2019-05-14 08:16:12 -03:00
1 parent 2ea04cf671
commit ae52568fd9
1 file changed
+6 -4
+6 -4
View File
@@ -113,10 +113,12 @@ const createClone = async (clone) => {
'value': clone.exchangeName
})
env.push({
'name': 'TIME_PERIOD',
'value': clone.timePeriod.toString()
})
if (isDefined(clone.timePeriod)) {
env.push({
'name': 'TIME_PERIOD',
'value': clone.timePeriod.toString()
})
}
logger.debug('createClone Trading Configuration.')
if (clone.botType === Trading) {