Fix asset.comment resolver

This commit is contained in:
Chi Vinh Le
2017-08-25 19:21:14 +07:00
parent ddb555e07f
commit f0931b4dc6
+1 -1
View File
@@ -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;
}