ソースを参照

评论页修改

wuyi 3 年 前
コミット
5f493ade50
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/comment/comment.service.ts

+ 1 - 1
src/comment/comment.service.ts

@@ -60,7 +60,7 @@ export class CommentService {
 
 
         const childList = await this.commentRepository.createQueryBuilder()
         const childList = await this.commentRepository.createQueryBuilder()
             .where({
             .where({
-                id: In(ids),
+                rootCommentId: In(ids),
             }).getMany();
             }).getMany();
 
 
         childList.forEach(comment => {
         childList.forEach(comment => {