Fix bot launch errors
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using Managing.Domain.Bots;
|
||||
using Managing.Infrastructure.Databases.MongoDb;
|
||||
using Managing.Infrastructure.Databases.MongoDb;
|
||||
using Managing.Infrastructure.Databases.MongoDb.Abstractions;
|
||||
using Managing.Infrastructure.Databases.MongoDb.Collections;
|
||||
|
||||
@@ -27,7 +26,7 @@ public class BotRepository : IBotRepository
|
||||
|
||||
public async Task UpdateBackupBot(BotBackup bot)
|
||||
{
|
||||
var b = _botRepository.FindOne(b => b.Name == bot.Name);
|
||||
var b = await _botRepository.FindOneAsync(b => b.Name == bot.Name);
|
||||
var dto = MongoMappers.Map(bot);
|
||||
dto.Id = b.Id;
|
||||
_botRepository.Update(dto);
|
||||
|
||||
Reference in New Issue
Block a user