ticket fix
This commit is contained in:
@@ -67,14 +67,14 @@ export const getOrderDetails = async (id: string) => {
|
||||
return data;
|
||||
};
|
||||
|
||||
export const getTickets = async (orderId: string) => {
|
||||
export const getTickets = async (id: string) => {
|
||||
const { data } = await axios.get<TicketsResponseType>(
|
||||
`/public/ticket/order/${orderId}`
|
||||
`/public/ticket/order/item/${id}`
|
||||
);
|
||||
return data;
|
||||
};
|
||||
|
||||
export const addTicket = async (orderId: string, params: AddTicketType) => {
|
||||
const { data } = await axios.post(`/public/ticket/order/${orderId}`, params);
|
||||
export const addTicket = async (id: string, params: AddTicketType) => {
|
||||
const { data } = await axios.post(`/public/ticket/order/item/${id}`, params);
|
||||
return data;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user