Skip to content

Commit 5a3e301

Browse files
committed
fix resend ticket
1 parent c91299c commit 5a3e301

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

frontend/src/api/attendee.client.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ export const attendeesClient = {
6262

6363
return new Blob([response.data]);
6464
},
65-
resendProduct: async (eventId: IdParam, attendeeId: IdParam) => {
66-
return await api.post(`events/${eventId}/attendees/${attendeeId}/resend-product`);
65+
resendTicket: async (eventId: IdParam, attendeeId: IdParam) => {
66+
return await api.post(`events/${eventId}/attendees/${attendeeId}/resend-ticket`);
6767
},
6868
}
6969

@@ -72,4 +72,4 @@ export const attendeeClientPublic = {
7272
const response = await publicApi.get<GenericDataResponse<Partial<Attendee>>>(`events/${eventId}/attendees/${attendeeShortId}`);
7373
return response.data;
7474
},
75-
}
75+
}

frontend/src/components/common/AttendeeTable/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {useModifyAttendee} from "../../../mutations/useModifyAttendee.ts";
1616
import {showError, showSuccess} from "../../../utilites/notifications.tsx";
1717
import {t, Trans} from "@lingui/macro";
1818
import {confirmationDialog} from "../../../utilites/confirmationDialog.tsx";
19-
import {useResendAttendeeProduct} from "../../../mutations/useResendAttendeeProduct.ts";
19+
import {useResendAttendeeTicket} from "../../../mutations/useResendAttendeeTicket.ts";
2020
import {ViewAttendeeModal} from "../../modals/ViewAttendeeModal";
2121
import {ActionMenu} from '../ActionMenu/index.tsx';
2222

@@ -33,7 +33,7 @@ export const AttendeeTable = ({attendees, openCreateModal}: AttendeeTableProps)
3333
const [selectedAttendee, setSelectedAttendee] = useState<Attendee>();
3434
const {data: event} = useGetEvent(eventId);
3535
const modifyMutation = useModifyAttendee();
36-
const resendProductMutation = useResendAttendeeProduct();
36+
const resendTicketMutation = useResendAttendeeTicket();
3737

3838
const handleModalClick = (attendee: Attendee, modal: {
3939
open: () => void
@@ -43,7 +43,7 @@ export const AttendeeTable = ({attendees, openCreateModal}: AttendeeTableProps)
4343
}
4444

4545
const handleResendProduct = (attendee: Attendee) => {
46-
resendProductMutation.mutate({
46+
resendTicketMutation.mutate({
4747
attendeeId: attendee.id,
4848
eventId: eventId,
4949
}, {

frontend/src/mutations/useResendAttendeeProduct.ts renamed to frontend/src/mutations/useResendAttendeeTicket.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import {useMutation} from "@tanstack/react-query";
22
import {IdParam} from "../types.ts";
33
import {attendeesClient} from "../api/attendee.client.ts";
44

5-
export const useResendAttendeeProduct = () => {
5+
export const useResendAttendeeTicket = () => {
66
return useMutation({
77
mutationFn: ({eventId, attendeeId}: {
88
eventId: IdParam;
99
attendeeId: IdParam;
10-
}) => attendeesClient.resendProduct(eventId, attendeeId)
10+
}) => attendeesClient.resendTicket(eventId, attendeeId)
1111
});
12-
}
12+
}

0 commit comments

Comments
 (0)