From dd05bb1e413a21daf5c2955ff31f94d2f455520b Mon Sep 17 00:00:00 2001 From: Bright Date: Thu, 7 Nov 2024 10:14:19 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=81=E0=B8=A3=E0=B8=AD=E0=B8=87=E0=B8=84?= =?UTF-8?q?=E0=B8=99=E0=B8=97=E0=B8=B5=E0=B9=88=E0=B8=9E=E0=B9=89=E0=B8=99?= =?UTF-8?q?=E0=B8=AA=E0=B8=A0=E0=B8=B2=E0=B8=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/ProfileController.ts | 1 + src/controllers/ProfileEmployeeController.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index 93b80467..5a11975a 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -3952,6 +3952,7 @@ export class ProfileController extends Controller { position: `%${requestBody.position}%`, }, ) + .andWhere("profile.isLeave IS FALSE") .andWhere( new Brackets((qb) => { qb.where( diff --git a/src/controllers/ProfileEmployeeController.ts b/src/controllers/ProfileEmployeeController.ts index a665030f..5941fbbc 100644 --- a/src/controllers/ProfileEmployeeController.ts +++ b/src/controllers/ProfileEmployeeController.ts @@ -1681,6 +1681,7 @@ export class ProfileEmployeeController extends Controller { position: `%${requestBody.position}%`, }, ) + .andWhere("profileEmployee.isLeave IS FALSE") .andWhere( new Brackets((qb) => { qb.where(