Skip to content

Commit

Permalink
fix: api params 이름 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
sinji2102 committed Dec 3, 2024
1 parent 0c53546 commit 8307204
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/apis/domains/tickets/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ export const getTicketRetrieve = async (
try {
const params = new URLSearchParams();
filterList.scheduleNumber.map((item) =>
params.append("scheduleNumber", convertingScheduleNumber(item))
params.append("scheduleNumbers", convertingScheduleNumber(item))
);
filterList.bookingStatus.map((item) => params.append("bookingStatus", item));
filterList.bookingStatus.map((item) => params.append("bookingStatuses", item));

const response: AxiosResponse<ApiResponseType<TicketRetrieveResponse>> = await get(
`tickets/${formData.performanceId}?${params.toString()}`
Expand All @@ -46,9 +46,9 @@ export const getTicketRetrieveSearch = async (
const params = new URLSearchParams();
params.append("searchWord", searchWord);
filterList.scheduleNumber.map((item) =>
params.append("scheduleNumber", convertingScheduleNumber(item))
params.append("scheduleNumbers", convertingScheduleNumber(item))
);
filterList.bookingStatus.map((item) => params.append("bookingStatus", item));
filterList.bookingStatus.map((item) => params.append("bookingStatuses", item));

const response: AxiosResponse<ApiResponseType<TicketRetrieveResponse>> = await get(
`tickets/search/${formData.performanceId}?${params.toString()}`
Expand Down

0 comments on commit 8307204

Please sign in to comment.