Update LeaveController to use KeycloakUserId for profile retrieval #2253
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m38s
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m38s
This commit is contained in:
parent
cbc2a1a88d
commit
839c357842
1 changed files with 3 additions and 2 deletions
|
|
@ -3637,8 +3637,9 @@ namespace BMA.EHR.Leave.Service.Controllers
|
|||
|
||||
//if (data.CheckInStatus == "NORMAL" || data.CheckOutStatus == "NORMAL")
|
||||
|
||||
var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId);
|
||||
var profile = await _userProfileRepository.GetProfileByKeycloakIdNewAsync(userId, AccessToken);
|
||||
//var userId = UserId == null ? Guid.Empty : Guid.Parse(UserId);
|
||||
// แก้เป็นมาใช้งาน KeycloakUserId แทน
|
||||
var profile = await _userProfileRepository.GetProfileByKeycloakIdNewAsync(data.KeycloakUserId, AccessToken);
|
||||
var defaultRound = await _dutyTimeRepository.GetDefaultAsync();
|
||||
if (defaultRound == null)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue