fix(holiday): minor valid_codes fix
This commit is contained in:
parent
cc48584b99
commit
46deae63bc
|
|
@ -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
|
//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 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 )
|
//fetches all shift of the employee in said window ( 4 previous completed weeks )
|
||||||
const shifts = await this.prisma.shifts.findMany({
|
const shifts = await this.prisma.shifts.findMany({
|
||||||
where: { timesheet: { employee_id: employee_id } ,
|
where: { timesheet: { employee_id: employee_id } ,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user