aboutsummaryrefslogtreecommitdiff
path: root/src/graphql
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-09-28 20:34:49 -0700
committerFuwn <[email protected]>2024-09-28 20:34:49 -0700
commit012b729e93af661f2eccc2a170404eb6da45f9c7 (patch)
tree126a8226301c6a8dbb2b0d599c9053587758a0bf /src/graphql
parentfeat(user): move profile page badges to graphql (diff)
downloaddue.moe-012b729e93af661f2eccc2a170404eb6da45f9c7.tar.xz
due.moe-012b729e93af661f2eccc2a170404eb6da45f9c7.zip
chore(npm): fix graphql builder
Diffstat (limited to 'src/graphql')
-rw-r--r--src/graphql/user/resolvers.ts16
1 files changed, 8 insertions, 8 deletions
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<Resolvers> = {
- 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[]
+ };
+ }
+ }
};