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(