add profileType

This commit is contained in:
kittapath 2025-01-20 22:54:41 +07:00
parent 98141ecb40
commit bb4eda5a6d

View file

@ -5094,7 +5094,8 @@ export class ProfileController extends Controller {
prefix: profile.prefix,
rank: profile.rank,
avatar: profile.avatar,
isDirector: profile.current_holders[0]?.isDirector ?? null,
profileType: "EMPLOYEE",
isDirector: posMaster?.isDirector || false,
isProbation: profile.isProbation,
avatarName: profile.avatarName,
firstName: profile.firstName,
@ -5239,6 +5240,7 @@ export class ProfileController extends Controller {
prefix: profile.prefix,
rank: profile.rank,
avatar: profile.avatar,
profileType: "OFFICER",
isDirector: posMaster?.isDirector || false,
isProbation: profile.isProbation,
avatarName: profile.avatarName,
@ -6235,7 +6237,7 @@ export class ProfileController extends Controller {
profile && profile.profileEducations.length > 0
? `${profile.profileEducations[0].degree ?? ""} ${profile.profileEducations[0].field ?? ""}`
: "",
dateAppoint: profile.dateAppoint
dateAppoint: profile.dateAppoint,
};
if (_profile.child4Id != null) {