From 6d4d99c15cfb903879a1b4dbeba27c6fc22cbbf3 Mon Sep 17 00:00:00 2001 From: Matias Date: Fri, 5 Jul 2019 14:35:48 -0300 Subject: [PATCH] Don't remove the clone from the ecosystem --- .../schema/mutations/RemoveCloneMutation.js | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/server/src/schema/mutations/RemoveCloneMutation.js b/server/src/schema/mutations/RemoveCloneMutation.js index a9f7dd8a0..38813d3eb 100644 --- a/server/src/schema/mutations/RemoveCloneMutation.js +++ b/server/src/schema/mutations/RemoveCloneMutation.js @@ -42,28 +42,6 @@ const resolve = async (parent, { id }, context) => { logger.debug('removeClone -> Removing Clone from Kubernates.') await removeKuberneteClone(clone.id) - if (clone.botType === Trading) { - let productCodeName - if (clone.mode === LIVE) { - productCodeName = 'Live Trading History' - } - if (clone.mode === COMPETITION) { - productCodeName = 'Competition Trading History' - } - if (clone.mode === BACKTEST) { - productCodeName = 'Backtest Trading History' - } - - let newEcosystemBot = { - devTeam: clone.teamSlug, - codeName: clone.botSlug, - cloneId: clone.id, - productCodeName - } - - await removeBotMutation(context.authorization, newEcosystemBot) - } - const query = { _id: id, authId: context.userId