Skip to content

Scheduling infrastructure for absolutely everyone.

fix: ensure metadata key is always present in BOOKING_CREATED webhook payload (#27300)

devin-ai-integration[bot]681d1915374b
diff --git a/packages/features/bookings/lib/handleConfirmation.ts b/packages/features/bookings/lib/handleConfirmation.ts
index 8f7bf89ffd9..74112ff8a50 100644
--- a/packages/features/bookings/lib/handleConfirmation.ts
+++ b/packages/features/bookings/lib/handleConfirmation.ts
@@ -577,7 +577,7 @@ export async function handleConfirmation(args: {
eventTypeId: eventType?.id,
status: "ACCEPTED",
smsReminderNumber: booking.smsReminderNumber || undefined,
- metadata: meetingUrl ? { videoCallUrl: meetingUrl } : undefined,
+ metadata: meetingUrl ? { videoCallUrl: meetingUrl } : {},
...(platformClientParams ? platformClientParams : {}),
};