This commit is contained in:
2024-07-12 22:20:43 +07:00
parent 6718d08448
commit 67630c2deb
7 changed files with 62 additions and 60 deletions

View File

@@ -32,9 +32,8 @@ public class BotRepository : IBotRepository
_botRepository.Update(dto);
}
public void DeleteBotByName(string name)
public void DeleteBotBackup(string botName)
{
var bot = _botRepository.FindOne(b => b.Name == name);
_botRepository.DeleteById(bot.Id.ToString());
_botRepository.DeleteOne(b => b.Name == botName);
}
}