From cdc2e9487868bbf12201a819aae4dbc26703b686 Mon Sep 17 00:00:00 2001 From: cyprain-okeke Date: Wed, 14 Jun 2023 14:41:43 +0100 Subject: [PATCH] Fix the failed test after dotnet format --- .../Repositories/OrganizationDomainRepository.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)