fix: videoCallUrl missing in webhooks for event types that require confirmation (#12856)
This commit is contained in:
parent
b6279f4128
commit
f1caaad536
|
@ -330,6 +330,7 @@ export async function handleConfirmation(args: {
|
||||||
eventTypeId: booking.eventType?.id,
|
eventTypeId: booking.eventType?.id,
|
||||||
status: "ACCEPTED",
|
status: "ACCEPTED",
|
||||||
smsReminderNumber: booking.smsReminderNumber || undefined,
|
smsReminderNumber: booking.smsReminderNumber || undefined,
|
||||||
|
metadata: evt.videoCallData?.url ? { videoCallUrl: evt.videoCallData.url } : undefined,
|
||||||
}).catch((e) => {
|
}).catch((e) => {
|
||||||
console.error(
|
console.error(
|
||||||
`Error executing webhook for event: ${WebhookTriggerEvents.BOOKING_CREATED}, URL: ${sub.subscriberUrl}`,
|
`Error executing webhook for event: ${WebhookTriggerEvents.BOOKING_CREATED}, URL: ${sub.subscriberUrl}`,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user