fix: videoCallUrl missing in webhooks for event types that require confirmation (#12856)

This commit is contained in:
Somay Chauhan 2023-12-19 13:55:06 +05:30 committed by GitHub
parent b6279f4128
commit f1caaad536
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -330,6 +330,7 @@ export async function handleConfirmation(args: {
eventTypeId: booking.eventType?.id,
status: "ACCEPTED",
smsReminderNumber: booking.smsReminderNumber || undefined,
metadata: evt.videoCallData?.url ? { videoCallUrl: evt.videoCallData.url } : undefined,
}).catch((e) => {
console.error(
`Error executing webhook for event: ${WebhookTriggerEvents.BOOKING_CREATED}, URL: ${sub.subscriberUrl}`,