mirror of
https://github.com/wassname/talk.git
synced 2026-07-10 00:35:56 +08:00
Fix asset.comment resolver
This commit is contained in:
@@ -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