Add SelectedNodeId parameter to SearchProfile method and update related DTO #1555

This commit is contained in:
Suphonchai Phoonsawat 2026-03-23 10:04:09 +07:00
parent 23bbd9791e
commit 818ff38e99
3 changed files with 5 additions and 2 deletions

View file

@ -2443,7 +2443,7 @@ namespace BMA.EHR.Leave.Service.Controllers
{
nodeId = profileAdmin?.RootDnaId;
}
var profile = await _userProfileRepository.SearchProfile(req.CitizenId, req.FirstName, req.LastName, AccessToken ?? "", req.Page, req.PageSize, role, nodeId, profileAdmin?.Node);
var profile = await _userProfileRepository.SearchProfile(req.CitizenId, req.FirstName, req.LastName, AccessToken ?? "", req.Page, req.PageSize, role, nodeId, profileAdmin?.Node, req.SelectedNodeId);
// Get default round once
var getDefaultRound = await _dutyTimeRepository.GetDefaultAsync();