From 0dc12fdfe7b8ac1e69b7d9df2777eea0a06cd598 Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Thu, 14 Nov 2024 11:41:58 +0700 Subject: [PATCH] fix --- src/controllers/ProfileController.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index b8198cdb..feb9736e 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -4531,12 +4531,13 @@ export class ProfileController extends Controller { posMasterId: posMaster?.id, }, }); - + const _profile: any = { profileId: profile.id, prefix: profile.prefix, rank: profile.rank, avatar: profile.avatar, + isDirector: profile.current_holders[0]?.isDirector ?? null, isProbation: profile.isProbation, avatarName: profile.avatarName, firstName: profile.firstName, @@ -4678,6 +4679,7 @@ export class ProfileController extends Controller { prefix: profile.prefix, rank: profile.rank, avatar: profile.avatar, + isDirector: profile.current_holders[0].isDirector ?? null, isProbation: profile.isProbation, avatarName: profile.avatarName, firstName: profile.firstName,