Skip to content

Commit

Permalink
core: fix graphql
Browse files Browse the repository at this point in the history
  • Loading branch information
undefined-moe committed May 10, 2024
1 parent 4c77c82 commit 214979b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/hydrooj/src/handler/user.ts
Expand Up @@ -75,8 +75,6 @@ registerResolver('Query', 'users(ids: [Int], search: String, limit: Int, exact:
return udocs;
}, 'Get a list of user by ids, or search users with the prefix.');

registerResolver('User', 'avatarUrl(size: Int)', 'String', (arg, ctx) => avatar(ctx.user.avatar, arg.size || 128));

class UserLoginHandler extends Handler {
noCheckPermView = true;

Expand Down

0 comments on commit 214979b

Please sign in to comment.