From 4834e462b521f53118eaf5cdbaf12be89c41127c Mon Sep 17 00:00:00 2001 From: Bright Date: Thu, 23 Jan 2025 17:57:31 +0700 Subject: [PATCH] =?UTF-8?q?fix=20=E0=B8=84=E0=B9=89=E0=B8=99=E0=B8=AB?= =?UTF-8?q?=E0=B8=B2=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7=E0=B8=B1=E0=B8=95?= =?UTF-8?q?=E0=B8=B4=E0=B8=96=E0=B8=B7=E0=B8=AD=E0=B8=84=E0=B8=A3=E0=B8=AD?= =?UTF-8?q?=E0=B8=87=E0=B8=95=E0=B8=B3=E0=B9=81=E0=B8=AB=E0=B8=99=E0=B9=88?= =?UTF-8?q?=E0=B8=87=E0=B9=84=E0=B8=94=E0=B9=89=20issue=20#1056?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/ProfileController.ts | 2 +- src/controllers/ProfileEmployeeController.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index 7be37ca1..55dd0b46 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -4928,7 +4928,7 @@ export class ProfileController extends Controller { requestBody.position != null && requestBody.position !== "" ? "positions.positionName LIKE :positionName" : "1=1", - { positionName: `${requestBody.position}` }, + { positionName: `%${requestBody.position}%` }, ) .getMany(); diff --git a/src/controllers/ProfileEmployeeController.ts b/src/controllers/ProfileEmployeeController.ts index 785a1fa3..18ea3b28 100644 --- a/src/controllers/ProfileEmployeeController.ts +++ b/src/controllers/ProfileEmployeeController.ts @@ -2069,7 +2069,7 @@ export class ProfileEmployeeController extends Controller { requestBody.position != null && requestBody.position !== "" ? "positions.positionName LIKE :positionName" : "1=1", - { positionName: `${requestBody.position}` }, + { positionName: `%${requestBody.position}%` }, ) .getMany();