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

Co-authored-by: CarinaWolli <wollencarina@gmail.com>
Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2024-03-07 04:03:09 +00:00
1 parent 33c1d80a42
commit fc062878ed
1 file changed
+4 -4
@@ -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 {