|
|
@@ -104,12 +104,12 @@ module.exports = function(crowi) {
|
|
|
const Comment = crowi.model('Comment');
|
|
|
const commentEvent = crowi.event('comment');
|
|
|
|
|
|
- await commentEvent.emit('remove', comment);
|
|
|
-
|
|
|
await Comment.remove({
|
|
|
$or: (
|
|
|
[{ replyTo: this._id }, { _id: this._id }]),
|
|
|
});
|
|
|
+
|
|
|
+ await commentEvent.emit('remove', comment);
|
|
|
return;
|
|
|
};
|
|
|
|