ticket fix

This commit is contained in:
hamid zarghami
2026-02-03 09:53:43 +03:30
parent 8dbfcdad53
commit 4c0041db17
5 changed files with 26 additions and 23 deletions
+4 -4
View File
@@ -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;
};