fix
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user