From 54a743532b44bc85390aec6f992f0d54ecbb3bb1 Mon Sep 17 00:00:00 2001 From: Bright Date: Mon, 1 Jul 2024 16:57:02 +0700 Subject: [PATCH] fix bug --- src/controllers/ProfileEmployeeController.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/controllers/ProfileEmployeeController.ts b/src/controllers/ProfileEmployeeController.ts index 375d92d0..32d53169 100644 --- a/src/controllers/ProfileEmployeeController.ts +++ b/src/controllers/ProfileEmployeeController.ts @@ -3275,12 +3275,12 @@ export class ProfileEmployeeController extends Controller { null ? null : profile.current_holders.find((x) => x.orgRevisionId == orgRevisionPublish.id)?.orgChild4; - const position = await this.positionRepository.findOne({ - relations: ["posExecutive"], - where: { - posMasterId: posMaster?.id, - }, - }); + // const position = await this.positionRepository.findOne({ + // relations: ["posExecutive"], + // where: { + // posMasterId: posMaster?.id, + // }, + // }); const _profile: any = { profileId: profile.id, prefix: profile.prefix, @@ -3299,7 +3299,7 @@ export class ProfileEmployeeController extends Controller { posTypeName: profile.posType == null ? null : profile.posType.posTypeName, posTypeRank: profile.posType == null ? null : profile.posType.posTypeRank, posTypeId: profile.posType == null ? null : profile.posType.id, - posExecutiveName: "", + // posExecutiveName: "", rootId: root == null ? null : root.id, root: root == null ? null : root.orgRootName, rootShortName: root == null ? null : root.orgRootShortName,