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