From 389bec8ec8dd4e439eb2b886428ed4e0a9d62163 Mon Sep 17 00:00:00 2001 From: kittapath Date: Wed, 25 Dec 2024 20:59:03 +0700 Subject: [PATCH] no message --- .../OrganizationDotnetController.ts | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/controllers/OrganizationDotnetController.ts b/src/controllers/OrganizationDotnetController.ts index 12da3cec..47bddb35 100644 --- a/src/controllers/OrganizationDotnetController.ts +++ b/src/controllers/OrganizationDotnetController.ts @@ -2113,12 +2113,12 @@ export class OrganizationDotnetController extends Controller { id: profile.id, avatar: profile.avatar, avatarName: profile.avatarName, - rank: profile.rank, - prefix: profile.prefix, - firstName: profile.firstName, - lastName: profile.lastName, - citizenId: profile.citizenId, - position: profile.position, + rank: profile.rank ?? "", + prefix: profile.prefix ?? "", + firstName: profile.firstName ?? "", + lastName: profile.lastName ?? "", + citizenId: profile.citizenId ?? "", + position: profile.position ?? "", posLevelId: profile.posLevelId, posTypeId: profile.posTypeId, email: profile.email, @@ -2137,10 +2137,10 @@ export class OrganizationDotnetController extends Controller { reasonSameDate: profile.reasonSameDate, telephoneNumber: profile.telephoneNumber, nationality: profile.nationality, - gender: profile.gender, - relationship: profile.relationship, - religion: profile.religion, - bloodGroup: profile.bloodGroup, + gender: profile.gender ?? "", + relationship: profile.relationship ?? "", + religion: profile.religion ?? "", + bloodGroup: profile.bloodGroup ?? "", registrationAddress: profile.registrationAddress, registrationProvinceId: profile.registrationProvinceId, registrationDistrictId: profile.registrationDistrictId, @@ -2152,8 +2152,8 @@ export class OrganizationDotnetController extends Controller { currentZipCode: profile.currentZipCode, dutyTimeId: profile.dutyTimeId, dutyTimeEffectiveDate: profile.dutyTimeEffectiveDate, - posLevel: profile.posLevel?.posLevelName ?? null, - posType: profile.posType?.posTypeName ?? null, + posLevel: profile.posLevel?.posLevelName ?? "", + posType: profile.posType?.posTypeName ?? "", profileSalary: profile.profileSalary, profileInsignia: profile.profileInsignias.map((x) => { return { ...x, insignia: x.insignia.name }; @@ -2174,7 +2174,7 @@ export class OrganizationDotnetController extends Controller { x.orgRevision?.orgRevisionIsDraft == false && x.orgRevision?.orgRevisionIsCurrent == true, )?.orgRootId ?? null, - posNo: shortName, + posNo: shortName ?? "", }; });