From d1f8c6fc14dee81f97dd87c0f913b0e290e558fe Mon Sep 17 00:00:00 2001 From: kittapath Date: Thu, 14 Nov 2024 15:39:52 +0700 Subject: [PATCH] no message --- src/controllers/ProfileController.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index feb9736e..f999ea91 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -4531,7 +4531,7 @@ export class ProfileController extends Controller { posMasterId: posMaster?.id, }, }); - + const _profile: any = { profileId: profile.id, prefix: profile.prefix, @@ -4679,7 +4679,7 @@ export class ProfileController extends Controller { prefix: profile.prefix, rank: profile.rank, avatar: profile.avatar, - isDirector: profile.current_holders[0].isDirector ?? null, + isDirector: posMaster?.isDirector || false, isProbation: profile.isProbation, avatarName: profile.avatarName, firstName: profile.firstName, @@ -7059,7 +7059,7 @@ export class ProfileController extends Controller { lastName: profile.lastName, citizenId: profile.citizenId, position: profile.position, - isDirector : posMaster?.isDirector??null, + isDirector: posMaster?.isDirector ?? null, isProbation: profile.isProbation, posLevelName: profile.posLevel == null ? null : profile.posLevel.posLevelName, posLevelRank: profile.posLevel == null ? null : profile.posLevel.posLevelRank,