From c7c32be069387e80896a11cf450c4dbfc2fec070 Mon Sep 17 00:00:00 2001 From: Bright Date: Fri, 15 Nov 2024 16:35:18 +0700 Subject: [PATCH] no message --- src/controllers/ProfileController.ts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index 8cea8b36..9474d641 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -4825,7 +4825,16 @@ export class ProfileController extends Controller { async getProfileAndCommander(@Request() request: RequestWithUser, @Path() id: string) { const profile = await this.profileRepo.findOne({ where: { keycloak: id }, - relations: ["posLevel", "posType", "current_holders", "current_holders.orgRoot"], + relations: [ + "posLevel", + "posType", + "current_holders", + "current_holders.orgRoot", + "current_holders.orgChild1", + "current_holders.orgChild2", + "current_holders.orgChild3", + "current_holders.orgChild4", + ], }); if (!profile) { throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูลบุคคลนี้ในระบบ"); @@ -5539,6 +5548,10 @@ export class ProfileController extends Controller { "posType", "current_holders", "current_holders.orgRoot", + "current_holders.orgChild1", + "current_holders.orgChild2", + "current_holders.orgChild3", + "current_holders.orgChild4", "profileSalary", ], order: {