diff --git a/packages/features/bookings/lib/handleNewBooking.ts b/packages/features/bookings/lib/handleNewBooking.ts index 5b2c33c566..6449e4f6b5 100644 --- a/packages/features/bookings/lib/handleNewBooking.ts +++ b/packages/features/bookings/lib/handleNewBooking.ts @@ -1503,7 +1503,7 @@ async function handler( // Here we should handle every after action that needs to be done after booking creation // Obtain event metadata that includes videoCallUrl - const metadata = { videoCallUrl: evt.videoCallData?.url }; + const metadata = evt.videoCallData?.url ? { videoCallUrl: evt.videoCallData.url } : undefined; try { await scheduleWorkflowReminders({ workflows: eventType.workflows, @@ -2119,7 +2119,7 @@ async function handler( log.error("Error while creating booking references", error); } - const metadataFromEvent = { videoCallUrl }; + const metadataFromEvent = videoCallUrl ? { videoCallUrl } : undefined; try { await scheduleWorkflowReminders({