From eab9b79aa747071956ef77484851c37587718c5c Mon Sep 17 00:00:00 2001 From: Bright Date: Wed, 13 Nov 2024 17:04:28 +0700 Subject: [PATCH] no message --- src/controllers/CommandController.ts | 4 ++-- src/controllers/ProfileController.ts | 11 ++++++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/controllers/CommandController.ts b/src/controllers/CommandController.ts index dbe5c5db..d02a4945 100644 --- a/src/controllers/CommandController.ts +++ b/src/controllers/CommandController.ts @@ -876,9 +876,9 @@ export class CommandController extends Controller { } /** - * API ลบรายการคำสั่ง + * API ลบรายการคำสั่งถาวร * - * @summary API ลบรายการคำสั่ง + * @summary API ลบรายการคำสั่งถาวร * * @param {string} id Id คำสั่ง */ diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index 83559285..b6a2ed64 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -5684,7 +5684,16 @@ export class ProfileController extends Controller { //await new permission().PermissionOrgUserGet(request, "SYS_REGISTRY_OFFICER", id); //ไม่แน่ใจOFFปิดไว้ก่อน const profile = await this.profileEmpRepo.findOne({ where: { id: 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, "ไม่พบข้อมูลบุคคลนี้ในระบบ");