Quellcode durchsuchen

fix: use static method in comment remove api

yukendev vor 2 Jahren
Ursprung
Commit
83701760d1
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      apps/app/src/server/routes/comment.js

+ 1 - 1
apps/app/src/server/routes/comment.js

@@ -475,7 +475,7 @@ module.exports = function(crowi, app) {
         throw new Error('Current user is not operatable to this comment.');
       }
 
-      await comment.removeWithReplies(comment);
+      await Comment.removeWithReplies(comment);
       await Page.updateCommentCount(comment.page);
       commentEvent.emit(CommentEvent.DELETE, comment);
     }