diff --git a/graph/resolvers/asset.js b/graph/resolvers/asset.js index ebae4e5a7..a48af7674 100644 --- a/graph/resolvers/asset.js +++ b/graph/resolvers/asset.js @@ -4,7 +4,7 @@ const Asset = { async comment({id}, {id: commentId}, {loaders: {Comments}}) { // Load the comment from the database. - const comment = Comments.get.load(id); + const comment = await Comments.get.load(commentId); if (!comment) { return null; }