fix : Add RevisionId For Insignia Period
Some checks failed
release-dev / release-dev (push) Failing after 13s
Some checks failed
release-dev / release-dev (push) Failing after 13s
This commit is contained in:
parent
722a1e33a8
commit
689c425acb
10 changed files with 18272 additions and 63 deletions
|
|
@ -558,7 +558,13 @@ namespace BMA.EHR.Insignia.Service.Controllers
|
|||
|
||||
// TODO: original code use this in production
|
||||
|
||||
var organizations = await _userProfileRepository.GetActiveRootAsync(AccessToken);
|
||||
var selectPeriod = _context.InsigniaPeriods.AsNoTracking().Where(x => x.Id == insigniaPeriodId).FirstOrDefault();
|
||||
if (selectPeriod == null)
|
||||
{
|
||||
throw new Exception(GlobalMessages.InsigniaPeriodNotFound);
|
||||
}
|
||||
|
||||
var organizations = await _userProfileRepository.GetActiveRootAsync(AccessToken, selectPeriod.RevisionId);
|
||||
|
||||
foreach (var organization in organizations)
|
||||
{
|
||||
|
|
@ -974,10 +980,10 @@ namespace BMA.EHR.Insignia.Service.Controllers
|
|||
.Where(x => x.RequestStatus == "st6")
|
||||
.Select(x => x.OrganizationId)
|
||||
.ToListAsync();
|
||||
|
||||
|
||||
var organizations = await _userProfileRepository.GetActiveRootAsync(AccessToken);
|
||||
|
||||
|
||||
|
||||
var organizations = await _userProfileRepository.GetActiveRootAsync(AccessToken, insigniaPeriod.RevisionId);
|
||||
|
||||
var orgAllCount = organizations
|
||||
.Where(x => !orgIdSend.Contains(x.Id))
|
||||
.Select(x => new
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue