fix(holiday): minor valid_codes fix

This commit is contained in:
Matthieu Haineault 2025-09-16 14:47:35 -04:00
parent cc48584b99
commit 46deae63bc

View File

@ -32,7 +32,7 @@ export class HolidayService {
//sets the start of the window to 28 days ( 4 completed weeks ) before the week with the holiday
const window_start = new Date(window_end.getTime() - 28 * 24 * 60 * 60000 + 1 )
const valid_codes = ['G1', 'G45', 'G56', 'G104', 'G105', 'G700'];
const valid_codes = ['G1', 'G43', 'G56', 'G104', 'G105', 'G700'];
//fetches all shift of the employee in said window ( 4 previous completed weeks )
const shifts = await this.prisma.shifts.findMany({
where: { timesheet: { employee_id: employee_id } ,