fix: meeting url missing in workflow email (#16434)
Co-authored-by: CarinaWolli <[email protected]> Co-authored-by: Joe Au-Yeung <[email protected]>
This commit is contained in:
4 files changed
+12
-3
No files matched your search
@@ -25,7 +25,11 @@ import prisma, { bookingMinimalSelect } from "@calcom/prisma";
|
||||
import type { WebhookTriggerEvents } from "@calcom/prisma/enums";
|
||||
import { BookingStatus } from "@calcom/prisma/enums";
|
||||
import { credentialForCalendarServiceSelect } from "@calcom/prisma/selects/credential";
|
||||
import { EventTypeMetaDataSchema, schemaBookingCancelParams } from "@calcom/prisma/zod-utils";
|
||||
import {
|
||||
bookingMetadataSchema,
|
||||
EventTypeMetaDataSchema,
|
||||
schemaBookingCancelParams,
|
||||
} from "@calcom/prisma/zod-utils";
|
||||
import type { EventTypeMetadata } from "@calcom/prisma/zod-utils";
|
||||
import {
|
||||
deleteAllWorkflowReminders,
|
||||
@@ -359,6 +363,7 @@ async function handler(req: CustomRequest) {
|
||||
smsReminderNumber: bookingToDelete.smsReminderNumber,
|
||||
evt: {
|
||||
...evt,
|
||||
metadata: { videoCallUrl: bookingMetadataSchema.parse(bookingToDelete.metadata || {})?.videoCallUrl },
|
||||
...{
|
||||
eventType: {
|
||||
slug: bookingToDelete.eventType?.slug,
|
||||
|
||||
@@ -462,6 +462,8 @@ export const roundRobinReassignment = async ({ bookingId }: { bookingId: number
|
||||
},
|
||||
});
|
||||
|
||||
const workflowEventMetadata = { videoCallUrl: getVideoCallUrlFromCalEvent(evt) };
|
||||
|
||||
for (const workflowReminder of workflowReminders) {
|
||||
const workflowStep = workflowReminder?.workflowStep;
|
||||
const workflow = workflowStep?.workflow;
|
||||
@@ -470,6 +472,7 @@ export const roundRobinReassignment = async ({ bookingId }: { bookingId: number
|
||||
await scheduleEmailReminder({
|
||||
evt: {
|
||||
...evt,
|
||||
metadata: workflowEventMetadata,
|
||||
eventType,
|
||||
},
|
||||
action: WorkflowActions.EMAIL_HOST,
|
||||
@@ -531,8 +534,6 @@ export const roundRobinReassignment = async ({ bookingId }: { bookingId: number
|
||||
},
|
||||
});
|
||||
|
||||
const workflowEventMetadata = { videoCallUrl: getVideoCallUrlFromCalEvent(evt) };
|
||||
|
||||
await scheduleWorkflowReminders({
|
||||
workflows: newEventWorkflows,
|
||||
smsReminderNumber: null,
|
||||
|
||||
Reference in new issue
Block a user