Skip to content

Scheduling infrastructure for absolutely everyone.

add videoCallUrl from link based video apps to metadata (#13995)

Carina Wollendorferfc062878ed00
diff --git a/packages/features/bookings/lib/handleNewBooking.ts b/packages/features/bookings/lib/handleNewBooking.ts
index e5ffe5f01a7..9ee17c5e607 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 {