no message

This commit is contained in:
kittapath 2024-11-14 15:39:52 +07:00
parent 81a9a019c3
commit d1f8c6fc14

View file

@ -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,