Extraction Type

This commit is contained in:
Matias committed 2019-03-27 23:03:02 +01:00
1 parent 43cff60e95
commit 8f6c7d7cf1
3 files changed
+4 -5

No files matched your search

+2 -2
View File
@@ -1,11 +1,11 @@
export const Trading = 'Trading'
export const Indicator = 'Indicator'
export const Sensor = 'Extraction'
export const Extraction = 'Extraction'
export const BotTypesEnum = [
Trading,
Indicator,
Sensor
Extraction
]
export default BotTypesEnum
+2 -2
View File
@@ -4,7 +4,7 @@ import { KubernateError } from '../errors'
import { Client, config } from 'kubernetes-client'
import deploymentManifest from '../config/clone-deployment.json'
import { BACKTEST, COMPETITION, LIVE, NO_TIME } from '../enums/CloneMode'
import { Trading, Indicator, Sensor } from '../enums/BotTypes'
import { Trading, Indicator, Extraction } from '../enums/BotTypes'
const createClone = async (clone) => {
try {
@@ -130,7 +130,7 @@ const createClone = async (clone) => {
'value': clone.keyId
})
}
} else if (clone.botType === Indicator || clone.botType === Sensor) {
} else if (clone.botType === Indicator || clone.botType === Extraction) {
if (clone.mode === NO_TIME) {
if (!clone.resumeExecution) {
env.push({
-1
View File
@@ -10,7 +10,6 @@ const cloneDetails = (selectedBot, clone) => {
clone.teamSlug = selectedBot.team.slug
clone.teamAvatar = selectedBot.team.profile.avatar
clone.userLoggedIn = selectedBot.team.members[0].member.alias
clone.botType = selectedBot.kind
}
return clone
}