From 9c1da388d8a1314380e4ed5ae414ec69482e5943 Mon Sep 17 00:00:00 2001 From: Anatolii Grynchuk Date: Wed, 6 May 2026 12:46:35 +0300 Subject: [PATCH] fix: use GetByIdAsync in DeleteAsync(TEntityId) Replaced sync GetById with await GetByIdAsync to avoid blocking the thread inside an async method. Ref: #IT-631 --- HrynCo.DAL.EF/Core/BaseEfRepository.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HrynCo.DAL.EF/Core/BaseEfRepository.cs b/HrynCo.DAL.EF/Core/BaseEfRepository.cs index 3f05392..aa23f0f 100644 --- a/HrynCo.DAL.EF/Core/BaseEfRepository.cs +++ b/HrynCo.DAL.EF/Core/BaseEfRepository.cs @@ -89,7 +89,7 @@ public abstract class BaseEfRepository : public async Task DeleteAsync(TEntityId id) { - TEntity? entity = GetById(id); + TEntity? entity = await GetByIdAsync(id); if (entity != null) { DoRemove(entity); -- 2.52.0