diff --git a/src/pages/selectSchedule/utils/changeApiReq.ts b/src/pages/selectSchedule/utils/changeApiReq.ts index 441f8294..e4b5f18c 100644 --- a/src/pages/selectSchedule/utils/changeApiReq.ts +++ b/src/pages/selectSchedule/utils/changeApiReq.ts @@ -13,13 +13,11 @@ export const transformHostScheduleType = ( if (!matchedResult) { return null; // Handle the case when there is no match for the date pattern } - const [, month, day, dateOfWeek] = matchedResult; + const [, month, day, ,] = matchedResult; return { - id: item.id.toString(), - month: month.padStart(2, '0'), - day: day.padStart(2, '0'), - dayOfWeek: dateOfWeek, + month: month, + day: day, startTime: item.startTime, endTime: item.endTime, priority: item.priority, diff --git a/src/types/createAvailableSchduleType.ts b/src/types/createAvailableSchduleType.ts index 9f0d7e29..01e187bd 100644 --- a/src/types/createAvailableSchduleType.ts +++ b/src/types/createAvailableSchduleType.ts @@ -1,8 +1,6 @@ export interface HostAvailableSchduleRequestType { - id: string; month: string; day: string; - dayOfWeek: string; startTime: string; endTime: string; priority: number;