mirror of
https://github.com/wassname/talk.git
synced 2026-10-29 13:40:57 +08:00
Fix asset.comment resolver
This commit is contained in:
1 parent
ddb555e07f
commit
f0931b4dc6
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user