fix : Add วันลาใช้ไป เพิ่มเติมไปใน func หาวันที่มีการ approve

This commit is contained in:
Suphonchai Phoonsawat 2025-04-25 10:44:01 +07:00
parent db483ce18d
commit a7b8c2786c
3 changed files with 43 additions and 9 deletions

View file

@ -182,11 +182,11 @@ namespace BMA.EHR.Application.Repositories
}
}
public async Task<GetProfileByKeycloakIdDto?> GetProfileByProfileIdAsync(Guid keycloakId, string? accessToken)
public async Task<GetProfileByKeycloakIdDto?> GetProfileByProfileIdAsync(Guid profileId, string? accessToken)
{
try
{
var apiPath = $"{_configuration["API"]}/org/dotnet/profile/{keycloakId}";
var apiPath = $"{_configuration["API"]}/org/dotnet/profile/{profileId}";
var apiKey = _configuration["API_KEY"];
var apiResult = await GetExternalAPIAsync(apiPath, accessToken ?? "", apiKey);