diff --git a/server/src/schema/mutations/RunSimulation.js b/server/src/schema/mutations/RunSimulation.js index 565c2ee95..c460e6ba8 100644 --- a/server/src/schema/mutations/RunSimulation.js +++ b/server/src/schema/mutations/RunSimulation.js @@ -123,7 +123,7 @@ async function createSimulatorClone(simulation, processName, userId, simulatorBo logger.debug('runSimulation -> Creating %s clone on the Database.', processName) await newClone.save() - clone = cloneDetails(bot, clone) + clone = cloneDetails(simulatorBot, clone) await createKubernetesClone(clone) logger.debug('runSimulation -> %s clone created.', processName)