From 00297d1a1a460f0b181d9af63f35c2836f621f7a Mon Sep 17 00:00:00 2001 From: riley Date: Wed, 1 Feb 2017 11:22:42 -0700 Subject: [PATCH] fix a bug per wyatt advice --- graph/resolvers/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graph/resolvers/user.js b/graph/resolvers/user.js index 8cc11bba3..c75cdbf54 100644 --- a/graph/resolvers/user.js +++ b/graph/resolvers/user.js @@ -7,7 +7,7 @@ const User = { // If the user is not an admin, only return comment list for the owner of // the comments. if (user && (user.hasRoles('ADMIN') || user.id === id)) { - return Comments.getByAuthorID.load(id); + return Comments.getByQuery({author_id: id}); } return null;