From 61ceaea7990df9a0e292be2027c9078435ce1583 Mon Sep 17 00:00:00 2001 From: Bright Date: Wed, 19 Feb 2025 16:53:43 +0700 Subject: [PATCH] no message --- src/controllers/WorkflowController.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/controllers/WorkflowController.ts b/src/controllers/WorkflowController.ts index c1318d1a..6a1d24bf 100644 --- a/src/controllers/WorkflowController.ts +++ b/src/controllers/WorkflowController.ts @@ -1144,7 +1144,7 @@ export class WorkflowController extends Controller { return new HttpSuccess(); } - /** + /** * API เช็ค สกจ * * @summary เช็ค สกจ @@ -1154,12 +1154,10 @@ export class WorkflowController extends Controller { async getProfileDirectorByProfileId(@Request() req: RequestWithUser, @Body() body: { - system: string; refId: string[]; },) { const _posMaster = await this.posMasterRepo.find({ where: { - posMasterAssigns: { assignId: body.system }, orgRevision: { orgRevisionIsDraft: false, orgRevisionIsCurrent: true }, current_holderId: In(body.refId), }, @@ -1172,12 +1170,13 @@ export class WorkflowController extends Controller { orgChild3Id: x.orgChild3Id, orgChild4Id: x.orgChild4Id, director: true, + current_holder: Not(IsNull()), })); const posMaster = await this.posMasterRepo.find({ where: _data, relations:["current_holder"] }); - + const data = posMaster.map((x) => ({ id: x.current_holder.id, citizenId: x.current_holder.citizenId,