From 3c651fe419ecae4b54f352137b0f47c18fe99b02 Mon Sep 17 00:00:00 2001 From: Bright Date: Thu, 7 Nov 2024 13:53:52 +0700 Subject: [PATCH] =?UTF-8?q?fix=20=E0=B8=84=E0=B8=B3=E0=B8=AA=E0=B8=B1?= =?UTF-8?q?=E0=B9=88=E0=B8=87=E0=B9=83=E0=B8=AB=E0=B9=89=E0=B9=82=E0=B8=AD?= =?UTF-8?q?=E0=B8=99=E0=B9=84=E0=B8=A1=E0=B9=88=E0=B8=9B=E0=B8=A5=E0=B8=94?= =?UTF-8?q?=E0=B8=95=E0=B8=B3=E0=B9=81=E0=B8=AB=E0=B8=99=E0=B9=88=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/CommandController.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/controllers/CommandController.ts b/src/controllers/CommandController.ts index c6a5faac..d5d33b3b 100644 --- a/src/controllers/CommandController.ts +++ b/src/controllers/CommandController.ts @@ -2170,6 +2170,7 @@ export class CommandController extends Controller { refCommandNo: string | null; templateDoc: string | null; commandId?: string | null; + isLeave?: boolean; }[]; }, ) { @@ -2196,6 +2197,9 @@ export class CommandController extends Controller { createdAt: new Date(), lastUpdatedAt: new Date(), }; + if(item.isLeave != undefined && item.isLeave == true) { + await removeProfileInOrganize(profile.id, "OFFICER"); + } const clearProfile = await checkCommandType(String(item.commandId)); const _null: any = null; if (clearProfile) {