Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bergomi02 committed Nov 29, 2024
1 parent d81439c commit becfe94
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion prime-dotnet-webapi/Services/SiteService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,8 @@ public async Task<IEnumerable<RemoteAccessSearchViewModel>> GetRemoteUserInfoAsy
IEnumerable<RemoteAccessSearchDto> searchResults = await _context.RemoteUserCertifications
.AsNoTracking()
.AsExpandable()
.Where(ruc => ruc.RemoteUser.Site.ApprovedDate.HasValue)
.Where(ruc => ruc.RemoteUser.Site.ApprovedDate.HasValue &&
ruc.RemoteUser.Site.DeletedDate == null && ruc.RemoteUser.Site.ArchivedDate == null)
.Where(matchesAnyCert)
.ProjectTo<RemoteAccessSearchDto>(_mapper.ConfigurationProvider)
.ToListAsync();
Expand Down

0 comments on commit becfe94

Please sign in to comment.