Comment out profile retrieval and error handling in LeaveRequestController #2250
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m16s

This commit is contained in:
Suphonchai Phoonsawat 2026-01-27 17:00:22 +07:00
parent 54c8152752
commit e8ffb82ead

View file

@ -1967,12 +1967,12 @@ namespace BMA.EHR.Leave.Service.Controllers
return Error(GlobalMessages.DataNotFound, StatusCodes.Status404NotFound);
}
var profile = await _userProfileRepository.GetProfileByKeycloakIdAsync(rawData.KeycloakUserId, AccessToken);
// var profile = await _userProfileRepository.GetProfileByKeycloakIdAsync(rawData.KeycloakUserId, AccessToken);
if (profile == null)
{
return Error(GlobalMessages.DataNotFound, StatusCodes.Status404NotFound);
}
// if (profile == null)
// {
// return Error(GlobalMessages.DataNotFound, StatusCodes.Status404NotFound);
// }
var result = new GetCancelLeaveRequestByIdDto
{