From 75d8434935de42b82be4b7385d500af2fc1e4506 Mon Sep 17 00:00:00 2001 From: moss <> Date: Fri, 30 May 2025 12:38:07 +0700 Subject: [PATCH] check type officer --- BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs index b9a7cf48..edff00d4 100644 --- a/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs +++ b/BMA.EHR.Insignia/Controllers/InsigniaRequestController.cs @@ -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 {