Comment out profile retrieval and error handling in LeaveRequestController #2250

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

View file

@ -1967,12 +1967,12 @@ namespace BMA.EHR.Leave.Service.Controllers
return Error(GlobalMessages.DataNotFound, StatusCodes.Status404NotFound); 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) // if (profile == null)
{ // {
return Error(GlobalMessages.DataNotFound, StatusCodes.Status404NotFound); // return Error(GlobalMessages.DataNotFound, StatusCodes.Status404NotFound);
} // }
var result = new GetCancelLeaveRequestByIdDto var result = new GetCancelLeaveRequestByIdDto
{ {