just return empty config
This commit is contained in:
parent
bbe9184f54
commit
a99c21f826
1 changed files with 1 additions and 5 deletions
|
|
@ -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,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue