Fix bot management for delete and stop

This commit is contained in:
2025-05-10 13:52:09 +07:00
parent ba2fbc976a
commit b7d5a0b6a7
10 changed files with 41 additions and 28 deletions

View File

@@ -34,9 +34,9 @@ public class BotRepository : IBotRepository
_botRepository.Update(dto);
}
public async Task DeleteBotBackup(string botName)
public async Task DeleteBotBackup(string identifier)
{
var backup = await _botRepository.FindOneAsync(b => b.Name == botName);
var backup = await _botRepository.FindOneAsync(b => b.Identifier == identifier);
await _botRepository.DeleteOneAsync(b => b.Id == backup.Id);
}
}