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(