check type officer

This commit is contained in:
moss 2025-05-30 12:38:07 +07:00
parent c49375718d
commit 75d8434935

View file

@ -2207,7 +2207,7 @@ namespace BMA.EHR.Insignia.Service.Controllers
if (req.DateReceive != null && req.Date != null)
{
profileInsignia.Status = "DONE";
if (profile.ProfileType == "officer")
if (profile.ProfileType != null && profile.ProfileType.ToLower() == "officer")
{
var profileInsigniaBody = new PostProfileInsigniaDto
{