shinoka7 6 лет назад
Родитель
Сommit
8cc9320f31
1 измененных файлов с 1 добавлено и 1 удалено
  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 }]),
     });