Fix workflow not firing for event types without video app as location (#8435)

* fix error when videoCallUrl was null

* make sure videocallurl is not null

* Revert "fix error when videoCallUrl was null"

This reverts commit f23776ec8b.

* Update packages/features/bookings/lib/handleNewBooking.ts

Co-authored-by: Hariom Balhara <hariombalhara@gmail.com>

---------

Co-authored-by: CarinaWolli <wollencarina@gmail.com>
Co-authored-by: Hariom Balhara <hariombalhara@gmail.com>
pull/8434/head^2
Carina Wollendorfer 2023-04-21 13:46:23 +02:00 committed by GitHub
parent 473b36a6be
commit 2fadba85f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1503,7 +1503,7 @@ async function handler(
// Here we should handle every after action that needs to be done after booking creation // Here we should handle every after action that needs to be done after booking creation
// Obtain event metadata that includes videoCallUrl // Obtain event metadata that includes videoCallUrl
const metadata = { videoCallUrl: evt.videoCallData?.url }; const metadata = evt.videoCallData?.url ? { videoCallUrl: evt.videoCallData.url } : undefined;
try { try {
await scheduleWorkflowReminders({ await scheduleWorkflowReminders({
workflows: eventType.workflows, workflows: eventType.workflows,
@ -2119,7 +2119,7 @@ async function handler(
log.error("Error while creating booking references", error); log.error("Error while creating booking references", error);
} }
const metadataFromEvent = { videoCallUrl }; const metadataFromEvent = videoCallUrl ? { videoCallUrl } : undefined;
try { try {
await scheduleWorkflowReminders({ await scheduleWorkflowReminders({