mirror of
https://github.com/wassname/talk.git
synced 2026-08-12 12:30:39 +08:00
Adding diff and fix to utils
This commit is contained in:
@@ -52,7 +52,7 @@ const decorateUserField = (typeResolver, field) => {
|
||||
|
||||
// The default resolver for the user decorator is loading the user by id.
|
||||
let fieldResolver = (obj, args, ctx) =>
|
||||
ctx.loaders.Users.getByID.get(obj[field]);
|
||||
ctx.loaders.Users.getByID.load(obj[field]);
|
||||
|
||||
// The resolver can be overridden however. This decorator will simply wrap the
|
||||
// field with a permission check.
|
||||
|
||||
Reference in New Issue
Block a user