From f1caaad5360a7bc178539e3a32f62c9c4814244b Mon Sep 17 00:00:00 2001 From: Somay Chauhan Date: Tue, 19 Dec 2023 13:55:06 +0530 Subject: [PATCH] fix: videoCallUrl missing in webhooks for event types that require confirmation (#12856) --- packages/features/bookings/lib/handleConfirmation.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/features/bookings/lib/handleConfirmation.ts b/packages/features/bookings/lib/handleConfirmation.ts index debc12ec32..cc71c27041 100644 --- a/packages/features/bookings/lib/handleConfirmation.ts +++ b/packages/features/bookings/lib/handleConfirmation.ts @@ -330,6 +330,7 @@ export async function handleConfirmation(args: { eventTypeId: booking.eventType?.id, status: "ACCEPTED", smsReminderNumber: booking.smsReminderNumber || undefined, + metadata: evt.videoCallData?.url ? { videoCallUrl: evt.videoCallData.url } : undefined, }).catch((e) => { console.error( `Error executing webhook for event: ${WebhookTriggerEvents.BOOKING_CREATED}, URL: ${sub.subscriberUrl}`,