diff --git a/src/backend-worker/handlers/get-picker-data.ts b/src/backend-worker/handlers/get-picker-data.ts index bcb0061..469d27e 100644 --- a/src/backend-worker/handlers/get-picker-data.ts +++ b/src/backend-worker/handlers/get-picker-data.ts @@ -7,15 +7,7 @@ import { import { respond, withSession } from '../utils/api-tools'; import { getGuild, getGuildData, getGuildMemberRoles } from '../utils/guild'; -const fail = () => - respond( - { - error: 'guild not found', - }, - { - status: 404, - } - ); +const fail = () => respond({ error: 'guild not found' }, { status: 404 }); export const GetPickerData = withSession( (session: SessionData) => async (request: Request): Promise => { @@ -23,14 +15,7 @@ export const GetPickerData = withSession( const [, , guildID] = url.pathname.split('/'); if (!guildID) { - return respond( - { - error: 'missing guild id', - }, - { - status: 400, - } - ); + return respond({ error: 'missing guild id' }, { status: 400 }); } const { id: userID } = session.user as DiscordUser;