fix(timesheets): fix error where shift payload is not sent when modify employee timesheets from approval page

This commit is contained in:
Nic D. 2026-01-26 10:08:53 -05:00
parent 42de823b87
commit 8231b3084d

View File

@ -15,7 +15,7 @@ export const ShiftService = {
createNewShifts: async (new_shifts: Shift[], employee_email?: string):Promise<BackendResponse<Shift>> => {
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<BackendResponse<Shift>> => {
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;
}