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:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user