fix: old v2 booking cancel endpoint issue (#19564)

* fix: old v2 booking cancel endpoint issue

* fixup! fix: old v2 booking cancel endpoint issue
This commit is contained in:
Morgan authored and GitHub committed 2025-02-26 13:14:13 +00:00
1 parent 8612fa71c7
commit 52662b3375
2 files changed
+12 -5

No files matched your search

@@ -26,7 +26,7 @@ export const useCancelBooking = (
) => {
const cancelBooking = useMutation<ApiResponse, Error, inputParams>({
mutationFn: (data) => {
return http.post<ApiResponse>(`/bookings/${data.id}/cancel`, data).then((res) => {
return http.post<ApiResponse>(`/bookings/${data.uid}/cancel`, data).then((res) => {
if (res.data.status === SUCCESS_STATUS) {
return res.data;
}