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
parent
473b36a6be
commit
2fadba85f4
|
@ -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({
|
||||||
|
|
Loading…
Reference in New Issue