เปลี่ยน DEFAULT สิทธิ์เป็น "CHILD" กรณีไม่ตั้งค่ามา #2431
All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m53s

This commit is contained in:
Suphonchai Phoonsawat 2026-04-17 20:11:18 +07:00
parent ee2d16925a
commit 058027ea29
2 changed files with 2 additions and 2 deletions

View file

@ -19,7 +19,7 @@ namespace BMA.EHR.Application.Responses.Leaves
public string posNo {get; set;} = string.Empty;
//public string? privilege {get; set;} = "PARENT";
[JsonConverter(typeof(PrivilegeConverter))]
public string privilege {get; set;} = "PARENT";
public string privilege {get; set;} = "CHILD";
public Guid? rootDnaId {get; set;}
public Guid? child1DnaId {get; set;}

View file

@ -17,7 +17,7 @@ namespace BMA.EHR.Domain.Shared
{
if (reader.TokenType == JsonToken.Null)
{
return "PARENT";
return "CHILD";
}
return reader.Value;
}