diff --git a/src/controllers/ProfileEmployeeController.ts b/src/controllers/ProfileEmployeeController.ts index 53ac9f1b..80581bdd 100644 --- a/src/controllers/ProfileEmployeeController.ts +++ b/src/controllers/ProfileEmployeeController.ts @@ -1907,7 +1907,7 @@ export class ProfileEmployeeController extends Controller { : "1=1", ) .andWhere( - retireType != undefined && retireType != null ? `profile.leaveType = :retireType` : "1=1", + retireType != undefined && retireType != null ? `profileEmployee.leaveType = :retireType` : "1=1", { retireType: retireType }, ) .andWhere("profileEmployee.employeeClass LIKE :type", {