This commit is contained in:
parent
4375ca0da8
commit
5fc3cfa3b4
1 changed files with 1 additions and 3 deletions
|
|
@ -1583,12 +1583,10 @@ namespace BMA.EHR.Application.Repositories.Reports
|
|||
.AsQueryable()
|
||||
.ToListAsync();
|
||||
insigniaPeriods = insigniaPeriods
|
||||
.Where(x => x.StartDate <= DateTime.Now.Date || x.InsigniaRequests.Count == 0).ToList();
|
||||
.Where(x => x.StartDate <= DateTime.Now.Date && x.InsigniaRequests.Count == 0).ToList();
|
||||
|
||||
foreach (var insigniaPeriod in insigniaPeriods)
|
||||
{
|
||||
if (insigniaPeriod.StartDate >= DateTime.Now.Date || insigniaPeriod.InsigniaRequests.Count > 0)
|
||||
continue;
|
||||
var organizations = await _userProfileRepository.GetActiveRootLatestAsync(AccessToken);
|
||||
if (organizations == null)
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue