diff --git a/src/time-and-attendance/pay-period/services/pay-periods-build-overview.service.ts b/src/time-and-attendance/pay-period/services/pay-periods-build-overview.service.ts index c83447f..023addc 100644 --- a/src/time-and-attendance/pay-period/services/pay-periods-build-overview.service.ts +++ b/src/time-and-attendance/pay-period/services/pay-periods-build-overview.service.ts @@ -30,7 +30,7 @@ export class GetOverviewService { const employee_overviews = await this.prisma.employees.findMany({ where: { OR: [ - { last_work_day: { gte: overview.period_start } }, + { last_work_day: { gte: toDateFromString(overview.period_start) } }, { last_work_day: null }, ] }, @@ -56,7 +56,7 @@ export class GetOverviewService { }, timesheet: { where: { - start_date: { gte: overview.period_start, lte: overview.period_end }, + start_date: { gte: toDateFromString(overview.period_start), lte: toDateFromString(overview.period_end) }, }, select: { id: true,