Add Insignia launch configuration and improve null checks in InsigniaRequestController #2388
All checks were successful
Build & Deploy Insignia Service / build (push) Successful in 1m54s

This commit is contained in:
Suphonchai Phoonsawat 2026-04-02 11:36:59 +07:00
parent a4a5d13203
commit 6b8eddcbc0
2 changed files with 27 additions and 0 deletions

View file

@ -2641,6 +2641,8 @@ namespace BMA.EHR.Insignia.Service.Controllers
{
if (item.CitizanId == null) continue;
var _profile = await _userProfileRepository.GetOfficerProfileByCitizenId(item.CitizanId, AccessToken);
if (_profile == null)
continue;
var profile = insigniaNote.InsigniaNoteProfiles.FirstOrDefault(x => x.ProfileId == _profile.Id);
if (profile == null)
{