From 9a0348dadad2665c2b77bfc069951371b7d4ab8f Mon Sep 17 00:00:00 2001 From: Bright Date: Wed, 13 Nov 2024 18:39:16 +0700 Subject: [PATCH] fix issue #679 --- src/controllers/CommandController.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/controllers/CommandController.ts b/src/controllers/CommandController.ts index d02a4945..1c921ae4 100644 --- a/src/controllers/CommandController.ts +++ b/src/controllers/CommandController.ts @@ -2561,7 +2561,17 @@ export class CommandController extends Controller { await Promise.all( body.data.map(async (item) => { const profile = await this.profileRepository.findOne({ - relations: ["profileSalary","posType","posLevel"], + relations: [ + "profileSalary", + "posType", + "posLevel", + "current_holders", + "current_holders.orgRoot", + "current_holders.orgChild1", + "current_holders.orgChild2", + "current_holders.orgChild3", + "current_holders.orgChild4", + ], where: { id: item.profileId }, order: { profileSalary: {