From fc062878ed00b51dfad5b015a1d17b36fbe5f9b7 Mon Sep 17 00:00:00 2001 From: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com> Date: Wed, 6 Mar 2024 23:03:09 -0500 Subject: [PATCH] add videoCallUrl from link based video apps to metadata (#13995) Co-authored-by: CarinaWolli Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com> --- packages/features/bookings/lib/handleNewBooking.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/features/bookings/lib/handleNewBooking.ts b/packages/features/bookings/lib/handleNewBooking.ts index e5ffe5f01a..9ee17c5e60 100644 --- a/packages/features/bookings/lib/handleNewBooking.ts +++ b/packages/features/bookings/lib/handleNewBooking.ts @@ -2111,6 +2111,10 @@ async function handler( await sendAttendeeRequestEmail({ ...evt, additionalNotes }, attendeesList[0]); } + if (booking.location?.startsWith("http")) { + videoCallUrl = booking.location; + } + const metadata = videoCallUrl ? { videoCallUrl: getVideoCallUrlFromCalEvent(evt) || videoCallUrl, @@ -2213,10 +2217,6 @@ async function handler( loggerWithEventDetails.debug(`Booking ${organizerUser.username} completed`); - if (booking.location?.startsWith("http")) { - videoCallUrl = booking.location; - } - // We are here so, booking doesn't require payment and booking is also created in DB already, through createBooking call if (isConfirmedByDefault) { try {