Skip to content

Scheduling infrastructure for absolutely everyone.

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

Carina Wollendorfer2fadba85f454
diff --git a/packages/features/bookings/lib/handleNewBooking.ts b/packages/features/bookings/lib/handleNewBooking.ts
index 5b2c33c5669..6449e4f6b58 100644
--- a/packages/features/bookings/lib/handleNewBooking.ts
+++ b/packages/features/bookings/lib/handleNewBooking.ts
@@ -1503,7 +1503,7 @@ async function handler(
// Here we should handle every after action that needs to be done after booking creation
// Obtain event metadata that includes videoCallUrl
- const metadata = { videoCallUrl: evt.videoCallData?.url };
+ const metadata = evt.videoCallData?.url ? { videoCallUrl: evt.videoCallData.url } : undefined;
try {
await scheduleWorkflowReminders({
workflows: eventType.workflows,
@@ -2119,7 +2119,7 @@ async function handler(
log.error("Error while creating booking references", error);
}
- const metadataFromEvent = { videoCallUrl };
+ const metadataFromEvent = videoCallUrl ? { videoCallUrl } : undefined;
try {
await scheduleWorkflowReminders({