From 0cf523c144cb4d9e70b1d5426d1b0af8b966bfdf Mon Sep 17 00:00:00 2001 From: cryptooda Date: Sun, 11 May 2025 20:43:54 +0700 Subject: [PATCH] Fix user in bot --- src/Managing.Application/ManageBot/StartBotCommandHandler.cs | 3 +++ 1 file changed, 3 insertions(+) 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(); }