Update LeaveRequestController to use GetLastLeaveRequestByTypeForUserAsync2 method with CreatedAt for fetching last leave request
This commit is contained in:
parent
869defcc7e
commit
7eade164e9
1 changed files with 2 additions and 2 deletions
|
|
@ -2497,8 +2497,8 @@ namespace BMA.EHR.Leave.Service.Controllers
|
|||
//var lastSalaryAmount = lastSalary == null ? 0 : lastSalary.Amount ?? 0;
|
||||
|
||||
var lastLeaveRequest =
|
||||
await _leaveRequestRepository.GetLastLeaveRequestByTypeForUserAsync(rawData.KeycloakUserId,
|
||||
rawData.Type.Id, rawData.LeaveStartDate.Date);
|
||||
await _leaveRequestRepository.GetLastLeaveRequestByTypeForUserAsync2(rawData.KeycloakUserId,
|
||||
rawData.Type.Id, rawData.CreatedAt);
|
||||
|
||||
//var rootOc = _userProfileRepository.GetRootOcId(profile.OcId ?? Guid.Empty, AccessToken);
|
||||
//var approver = string.Empty;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue