Skip to content

Commit 5483597

Browse files
committed
Revert "fix: Don’t allow hosts to cancel a booking without providing a reason through v1 (#23647)"
This reverts commit 3c72d7a.
1 parent 4ed0901 commit 5483597

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/api/v1/lib/validations/booking.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const bookingCancelSchema = z.object({
4141
id: z.number(),
4242
allRemainingBookings: z.boolean().optional(),
4343
cancelSubsequentBookings: z.boolean().optional(),
44-
cancellationReason: z.string().min(1).optional(),
44+
cancellationReason: z.string().optional().default("Not Provided"),
4545
seatReferenceUid: z.string().optional(),
4646
cancelledBy: z.string().email({ message: "Invalid email" }).optional(),
4747
internalNote: z

0 commit comments

Comments
 (0)