From 8231b3084da9ca4d4778d8134c6b82466bce4b7f Mon Sep 17 00:00:00 2001 From: "Nic D." <91558719+Venti-Bear@users.noreply.github.com> Date: Mon, 26 Jan 2026 10:08:53 -0500 Subject: [PATCH] fix(timesheets): fix error where shift payload is not sent when modify employee timesheets from approval page --- src/modules/timesheets/services/shift-service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/timesheets/services/shift-service.ts b/src/modules/timesheets/services/shift-service.ts index aef90ec..5abf09a 100644 --- a/src/modules/timesheets/services/shift-service.ts +++ b/src/modules/timesheets/services/shift-service.ts @@ -15,7 +15,7 @@ export const ShiftService = { createNewShifts: async (new_shifts: Shift[], employee_email?: string):Promise> => { if (employee_email) { - const response = await api.post(`/shift/create/${employee_email}`); + const response = await api.post(`/shift/create/${employee_email}`, new_shifts); return response.data; } @@ -25,7 +25,7 @@ export const ShiftService = { updateShifts: async (existing_shifts: Shift[], employee_email?: string):Promise> => { if (employee_email) { - const response = await api.patch(`/shift/update/${employee_email}`); + const response = await api.patch(`/shift/update/${employee_email}`, existing_shifts); return response.data; }