diff --git a/src/time-and-attendance/pay-period/pay-periods.controller.ts b/src/time-and-attendance/pay-period/pay-periods.controller.ts index 8104c69..dfcde18 100644 --- a/src/time-and-attendance/pay-period/pay-periods.controller.ts +++ b/src/time-and-attendance/pay-period/pay-periods.controller.ts @@ -52,7 +52,7 @@ export class PayPeriodsController { ): Promise> { if (!email) return {success: false, error: 'EMAIL_REQUIRED'}; if (!timesheet_ids || timesheet_ids.length < 1) return {success: false, error: 'TIMESHEET_ID_REQUIRED'}; - if (!is_approved) return {success: false, error: 'APPROVAL_STATUS_REQUIRED'} + if (is_approved === null) return {success: false, error: 'APPROVAL_STATUS_REQUIRED'} return this.commandService.bulkApproveEmployee(email, timesheet_ids, is_approved); }