shinoka7 7 tahun lalu
induk
melakukan
8cc9320f31
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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 }]),
     });