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

This commit is contained in:
Suphonchai Phoonsawat 2026-04-02 09:51:45 +07:00
parent 6691303ea7
commit ea694bfda2

View file

@ -2869,7 +2869,7 @@ namespace BMA.EHR.Leave.Service.Controllers
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);
//var userRound = await _dutyTimeRepository.GetByIdAsync(profile.DutyTimeId ?? Guid.Empty);