From 012b729e93af661f2eccc2a170404eb6da45f9c7 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sat, 28 Sep 2024 20:34:49 -0700 Subject: chore(npm): fix graphql builder --- src/graphql/user/resolvers.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/graphql/user/resolvers.ts') diff --git a/src/graphql/user/resolvers.ts b/src/graphql/user/resolvers.ts index a18358be..af71d384 100644 --- a/src/graphql/user/resolvers.ts +++ b/src/graphql/user/resolvers.ts @@ -3,12 +3,12 @@ import type { WithIndex } from '../$types'; import type { Resolvers, Badge } from './$types'; export const resolvers: WithIndex = { - Query: { - User: async (_, args /* , _context */) => { - return { - id: args.id, - badges: await getUserBadges(args.id) as Badge[] - } - } - } + Query: { + User: async (_, args /* , _context */) => { + return { + id: args.id, + badges: (await getUserBadges(args.id)) as Badge[] + }; + } + } }; -- cgit v1.2.3