diff --git a/src/Managing.Application/ManageBot/StartBotCommandHandler.cs b/src/Managing.Application/ManageBot/StartBotCommandHandler.cs index 7b4349d..658880b 100644 --- a/src/Managing.Application/ManageBot/StartBotCommandHandler.cs +++ b/src/Managing.Application/ManageBot/StartBotCommandHandler.cs @@ -53,14 +53,17 @@ namespace Managing.Application.ManageBot { case BotType.SimpleBot: var bot = _botFactory.CreateSimpleBot(request.Name, null); + bot.User = request.User; _botService.AddSimpleBotToCache(bot); return bot.GetStatus(); case BotType.ScalpingBot: var sBot = _botFactory.CreateScalpingBot(request.Config); + sBot.User = request.User; _botService.AddTradingBotToCache(sBot); return sBot.GetStatus(); case BotType.FlippingBot: var fBot = _botFactory.CreateFlippingBot(request.Config); + fBot.User = request.User; _botService.AddTradingBotToCache(fBot); return fBot.GetStatus(); }