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 {