Parcourir la source

评论页修改

wuyi il y a 2 ans
Parent
commit
5f493ade50
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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 => {