fix #1509
Some checks failed
release-dev / release-dev (push) Failing after 11s

This commit is contained in:
Suphonchai Phoonsawat 2025-05-07 12:36:23 +07:00
parent e55001e234
commit 3880ce6985
3 changed files with 18 additions and 3 deletions

View file

@ -1246,8 +1246,11 @@ namespace BMA.EHR.Leave.Service.Controllers
public async Task<ActionResult<ResponseObject>> GetLeaveRequestCalendarAsync(
[FromBody] GetLeaveRequestCalendarDto req)
{
var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId);
//var thisYear = DateTime.Now.Year;
var data = await _leaveRequestRepository.GetLeaveRequestByYearAsync(req.Year);
var data = await _leaveRequestRepository.GetLeaveRequestByYearAsync(req.Year, userId);
// var profileList = await _userProfileRepository.GetProfileWithKeycloak(AccessToken);