Skip to content

Commit

Permalink
Fix the failed test after dotnet format
Browse files Browse the repository at this point in the history
  • Loading branch information
cyprain-okeke committed Jun 14, 2023
1 parent e78e482 commit cdc2e94
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ from s in sJoin.DefaultIfEmpty()
return Mapper.Map<Core.Entities.OrganizationDomain>(domain);
}

public Task<ICollection<Core.Entities.OrganizationDomain>> GetExpiredOrganizationDomainsAsync()
public async Task<ICollection<Core.Entities.OrganizationDomain>> GetExpiredOrganizationDomainsAsync()

Check warning on line 108 in src/Infrastructure.EntityFramework/Repositories/OrganizationDomainRepository.cs

View workflow job for this annotation

GitHub Actions / Testing

This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.

Check warning on line 108 in src/Infrastructure.EntityFramework/Repositories/OrganizationDomainRepository.cs

View workflow job for this annotation

GitHub Actions / Testing

This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
{
using var scope = ServiceScopeFactory.CreateScope();
var dbContext = GetDatabaseContext(scope);
Expand All @@ -117,7 +117,7 @@ from s in sJoin.DefaultIfEmpty()
&& x.VerifiedDate == null)
.ToList();

return Task.FromResult(Mapper.Map<List<Core.Entities.OrganizationDomain>>(domains));
return Mapper.Map<List<Core.Entities.OrganizationDomain>>(domains);
}

public async Task<bool> DeleteExpiredAsync(int expirationPeriod)
Expand Down

0 comments on commit cdc2e94

Please sign in to comment.