diff --git a/src/Infrastructure.EntityFramework/Repositories/OrganizationDomainRepository.cs b/src/Infrastructure.EntityFramework/Repositories/OrganizationDomainRepository.cs index 08bee361227d..64438bf70489 100644 --- a/src/Infrastructure.EntityFramework/Repositories/OrganizationDomainRepository.cs +++ b/src/Infrastructure.EntityFramework/Repositories/OrganizationDomainRepository.cs @@ -105,7 +105,7 @@ from s in sJoin.DefaultIfEmpty() return Mapper.Map(domain); } - public Task> GetExpiredOrganizationDomainsAsync() + public async Task> GetExpiredOrganizationDomainsAsync() { using var scope = ServiceScopeFactory.CreateScope(); var dbContext = GetDatabaseContext(scope); @@ -117,7 +117,7 @@ from s in sJoin.DefaultIfEmpty() && x.VerifiedDate == null) .ToList(); - return Task.FromResult(Mapper.Map>(domains)); + return Mapper.Map>(domains); } public async Task DeleteExpiredAsync(int expirationPeriod)