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; }