diff --git a/src/routes/app/sms/+page.server.ts b/src/routes/app/sms/+page.server.ts index 3dc5f38..45c0976 100644 --- a/src/routes/app/sms/+page.server.ts +++ b/src/routes/app/sms/+page.server.ts @@ -3,7 +3,7 @@ import { PhoneRegex } from '$lib/regex'; import { logger } from '$lib/server/logger'; import { prisma } from '$lib/server/prisma/index.js'; import { TwilioClient } from '$lib/server/twilio'; -import { error, fail, type Actions } from '@sveltejs/kit'; +import { fail, type Actions } from '@sveltejs/kit'; import zod from 'zod'; export const load = async (event) => { @@ -18,10 +18,6 @@ export const load = async (event) => { }, }); - if (!configs || Object.keys(configs).length === 0) { - return error(500, new Error('twilio_configs_not_set')); - } - return { configs: configs, };