|
|
@@ -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 }]),
|
|
|
});
|