fix ccode

This commit is contained in:
Suphonchai Phoonsawat 2025-05-08 22:19:12 +07:00
parent 496917c34c
commit 4cc57322c0
4 changed files with 47 additions and 8 deletions

View file

@ -415,7 +415,7 @@ namespace BMA.EHR.Insignia.Service.Controllers
if (selectPeriod != null && selectPeriod.InsigniaEmployees != null)
{
var emp =
await _userProfileRepository.GetEmployeeProfileByPositionAsync(organization.Id, selectPeriod.InsigniaEmployees.Select(x => x.RefId), AccessToken);
await _userProfileRepository.GetEmployeeProfileByPositionAsync(organization.Id, selectPeriod.InsigniaEmployees.Select(x => x.RefId!.ValueOrBlank()).ToArray(), AccessToken);
if (emp != null)
allEmployeeProfileByRoot.AddRange(emp);
}