Fix booking cancelation
This commit is contained in:
@@ -770,7 +770,7 @@ export async function cancelPublicBooking(complexSlug: string, input: CancelPubl
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (booking.customerPhone !== input.customerPhone.trim()) {
|
if (booking.customerPhone !== input.customerPhone.trim()) {
|
||||||
throw new PublicBookingServiceError('Los datos ingresados no coinciden con la reserva.', 403);
|
throw new PublicBookingServiceError('Los datos ingresados no coinciden con la reserva.', 400);
|
||||||
}
|
}
|
||||||
|
|
||||||
const date = formatIsoDate(booking.bookingDate);
|
const date = formatIsoDate(booking.bookingDate);
|
||||||
|
|||||||
Reference in New Issue
Block a user