Fix bot things 2
This commit is contained in:
@@ -34,8 +34,9 @@ public class BotRepository : IBotRepository
|
||||
_botRepository.Update(dto);
|
||||
}
|
||||
|
||||
public void DeleteBotBackup(string botName)
|
||||
public async Task DeleteBotBackup(string botName)
|
||||
{
|
||||
_botRepository.DeleteOne(b => b.Name == botName);
|
||||
var backup = await _botRepository.FindOneAsync(b => b.Name == botName);
|
||||
await _botRepository.DeleteOneAsync(b => b.Id == backup.Id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user