From 4548a782563a24903e75dcdc719aa1632614ed2b Mon Sep 17 00:00:00 2001 From: Kittapath Date: Tue, 9 Jul 2024 14:53:36 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=84=E0=B9=89=E0=B8=99=E0=B8=AB=E0=B8=B2?= =?UTF-8?q?=E0=B8=9E=E0=B9=89=E0=B8=99=E0=B8=A3=E0=B8=B2=E0=B8=8A=E0=B8=81?= =?UTF-8?q?=E0=B8=B2=E0=B8=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/ProfileController.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index d12c6002..ef4e1225 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -2347,8 +2347,8 @@ export class ProfileController extends Controller { .andWhere( isRetire != undefined && isRetire != null ? isRetire == true - ? `profile.dateRetire IS null` - : `profile.dateRetire IS NOT NULL` + ? `profile.dateLeave IS null` + : `profile.dateLeave IS NOT NULL` : "1=1", ) .andWhere(