fix: processWorkflowStep format cal event (#23802)

* fix: processWorkflowStep format cal event

* chore: update platform libraries
This commit is contained in:
Lauris Skraucis authored and GitHub committed 2025-09-12 18:27:37 +01:00
1 parent 1fee90322d
commit 794c99239a
4 files changed
+22 -8

No files matched your search

@@ -10,6 +10,7 @@ import * as twilio from "@calcom/features/ee/workflows/lib/reminders/providers/t
import type { Workflow, WorkflowStep } from "@calcom/features/ee/workflows/lib/types";
import { checkSMSRateLimit } from "@calcom/lib/checkRateLimitAndThrowError";
import { SENDER_NAME } from "@calcom/lib/constants";
import { formatCalEventExtended } from "@calcom/lib/formatCalendarEvent";
import { withReporting } from "@calcom/lib/sentryWrapper";
import { getTranslation } from "@calcom/lib/server/i18n";
import prisma from "@calcom/prisma";
@@ -53,7 +54,7 @@ const processWorkflowStep = async (
step: WorkflowStep,
{
smsReminderNumber,
calendarEvent: evt,
calendarEvent,
emailAttendeeSendToOverride,
hideBranding,
seatReferenceUid,
@@ -61,6 +62,8 @@ const processWorkflowStep = async (
) => {
if (!step?.verifiedAt) return;
const evt = formatCalEventExtended(calendarEvent);
if (isSMSOrWhatsappAction(step.action)) {
await checkSMSRateLimit({
identifier: `sms:${workflow.teamId ? "team:" : "user:"}${workflow.teamId || workflow.userId}`,