Fix effective date retrieval in LeaveReportController by using ProfileId instead of Id #2400
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m48s
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m48s
This commit is contained in:
parent
6691303ea7
commit
ea694bfda2
1 changed files with 1 additions and 1 deletions
|
|
@ -2869,7 +2869,7 @@ namespace BMA.EHR.Leave.Service.Controllers
|
||||||
|
|
||||||
UserDutyTime? effectiveDate = null;
|
UserDutyTime? effectiveDate = null;
|
||||||
|
|
||||||
effectiveDate = await _userDutyTimeRepository.GetLastEffectRound(p.Id);
|
effectiveDate = await _userDutyTimeRepository.GetLastEffectRound(p.ProfileId ?? Guid.Empty);
|
||||||
//return Error($"{data.Id} PF{data.FirstName} {data.LastName} : {GlobalMessages.DataNotFound}", StatusCodes.Status404NotFound);
|
//return Error($"{data.Id} PF{data.FirstName} {data.LastName} : {GlobalMessages.DataNotFound}", StatusCodes.Status404NotFound);
|
||||||
|
|
||||||
//var userRound = await _dutyTimeRepository.GetByIdAsync(profile.DutyTimeId ?? Guid.Empty);
|
//var userRound = await _dutyTimeRepository.GetByIdAsync(profile.DutyTimeId ?? Guid.Empty);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue