Skip to content

Commit 5be8f46

Browse files
fix: 修改评论接口
1 parent 35c8ed8 commit 5be8f46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service/app/controller/blog/comment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ class CommentController extends controller {
211211
FROM visitor_comment
212212
LEFT JOIN visitor ON visitor_comment.visitor_id = visitor.id
213213
LEFT JOIN visitor_like ON visitor_comment.id = visitor_like.comment_id
214-
WHERE about_id = ?
214+
WHERE about_id IS NOT NULL
215215
ORDER BY visitor_comment.publish_time DESC LIMIT ?,?`;
216216
values = [request.offset, request.limit];
217217
}

0 commit comments

Comments
 (0)