diff options
Diffstat (limited to 'src/graphql')
| -rw-r--r-- | src/graphql/user/resolvers.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/graphql/user/resolvers.ts b/src/graphql/user/resolvers.ts index 30f48cd1..e6575a75 100644 --- a/src/graphql/user/resolvers.ts +++ b/src/graphql/user/resolvers.ts @@ -49,7 +49,7 @@ const authenticatedBadgesOperation = async ( if (identity instanceof Error) return []; - const authorised = privilegedUser(identity.id) + const authorised = privilegedUser(identity.id); await operation(identity, authorised); @@ -71,7 +71,7 @@ const authenticatedPreferencesOperation = async ( if (identity instanceof Error) return []; - const authorised = privilegedUser(identity.id) + const authorised = privilegedUser(identity.id); return { id: identity.id, @@ -129,7 +129,7 @@ export const resolvers: WithIndex<Resolvers> = { allBadges .filter((badge) => badge.category === category) .filter((badge) => badge.hidden).length > - allBadges.filter((badge) => badge.category === category).length / 2 + allBadges.filter((badge) => badge.category === category).length / 2 ? false : true }); |