shinoka7 7 yıl önce
ebeveyn
işleme
8cc9320f31
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      src/server/models/comment.js

+ 1 - 1
src/server/models/comment.js

@@ -80,7 +80,7 @@ module.exports = function(crowi) {
 
   commentSchema.methods.removeWithReplies = async function() {
     const Comment = crowi.model('Comment');
-    return await Comment.remove({
+    return Comment.remove({
       $or: (
         [{ replyTo: this._id }, { _id: this._id }]),
     });