File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
features/ee/workflows/lib/reminders/providers Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -2,16 +2,16 @@ import type { NextRequest } from "next/server";
22import TwilioClient from "twilio" ;
33import { v4 as uuidv4 } from "uuid" ;
44
5- import { checkSMSRateLimit } from "@calcom/lib/smsLockState" ;
6- import { WEBAPP_URL } from "@calcom/lib/constants" ;
5+ import { IS_API_V2_E2E , WEBAPP_URL } from "@calcom/lib/constants" ;
76import logger from "@calcom/lib/logger" ;
7+ import { checkSMSRateLimit } from "@calcom/lib/smsLockState" ;
88import { setTestSMS } from "@calcom/lib/testSMS" ;
99import prisma from "@calcom/prisma" ;
1010import { SMSLockState } from "@calcom/prisma/enums" ;
1111
1212const log = logger . getSubLogger ( { prefix : [ "[twilioProvider]" ] } ) ;
1313
14- const testMode = process . env . NEXT_PUBLIC_IS_E2E || process . env . INTEGRATION_TEST_MODE || process . env . IS_E2E ;
14+ const testMode = process . env . NEXT_PUBLIC_IS_E2E || process . env . INTEGRATION_TEST_MODE || IS_API_V2_E2E ;
1515
1616function createTwilioClient ( ) {
1717 if ( process . env . TWILIO_SID && process . env . TWILIO_TOKEN && process . env . TWILIO_MESSAGING_SID ) {
Original file line number Diff line number Diff line change @@ -258,3 +258,5 @@ export const ENV_PAST_BOOKING_RESCHEDULE_CHANGE_TEAM_IDS =
258258export const ORG_TRIAL_DAYS = process . env . STRIPE_ORG_TRIAL_DAYS
259259 ? Math . max ( 0 , parseInt ( process . env . STRIPE_ORG_TRIAL_DAYS , 10 ) )
260260 : null ;
261+
262+ export const IS_API_V2_E2E = process . env . IS_E2E === "true" ;
You can’t perform that action at this time.
0 commit comments