Стать исполнителем новая версия
This commit is contained in:
@@ -49,6 +49,14 @@ public class AccountRepository : IAccountRepository
|
||||
.FirstOrDefaultAsync(a => a.Phone == phone, cancellationToken);
|
||||
}
|
||||
|
||||
public async Task<Account?> GetByPhoneIncludingDeletedAsync(string phone, CancellationToken cancellationToken)
|
||||
{
|
||||
return await _context.Accounts
|
||||
.IgnoreQueryFilters()
|
||||
.Include(a => a.Profile)
|
||||
.FirstOrDefaultAsync(a => a.Phone == phone, cancellationToken);
|
||||
}
|
||||
|
||||
public async Task UpdateAsync(Account account, CancellationToken cancellationToken)
|
||||
{
|
||||
Console.WriteLine($"[AccountRepository.UpdateAsync] Starting update for account: {account.Id}");
|
||||
|
||||
Reference in New Issue
Block a user