From 6dec98129cd70f985889feb58a482480276dc1c3 Mon Sep 17 00:00:00 2001 From: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com> Date: Wed, 3 Jan 2024 20:05:29 +0530 Subject: [PATCH] fix: bad request in webhook route (#13008) --- apps/web/pages/api/recorded-daily-video.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/web/pages/api/recorded-daily-video.ts b/apps/web/pages/api/recorded-daily-video.ts index 9886fc6863..412d73bbfc 100644 --- a/apps/web/pages/api/recorded-daily-video.ts +++ b/apps/web/pages/api/recorded-daily-video.ts @@ -21,16 +21,16 @@ const schema = z id: z.string(), payload: z.object({ recording_id: z.string(), - end_ts: z.number(), + end_ts: z.number().optional(), room_name: z.string(), - start_ts: z.number(), + start_ts: z.number().optional(), status: z.string(), - max_participants: z.number(), - duration: z.number(), - s3_key: z.string(), + max_participants: z.number().optional(), + duration: z.number().optional(), + s3_key: z.string().optional(), }), - event_ts: z.number(), + event_ts: z.number().optional(), }) .passthrough();