mirror of
https://github.com/wassname/talk.git
synced 2026-10-03 13:02:47 +08:00
Adding diff and fix to utils
This commit is contained in:
1 parent
741419f47b
commit
e2af3470dc
1 file changed
+1
-1
@@ -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