|
@@ -52,8 +52,6 @@ class CommentService {
|
|
|
this.commentEvent.on('remove', async(comment) => {
|
|
this.commentEvent.on('remove', async(comment) => {
|
|
|
this.commentEvent.onRemove();
|
|
this.commentEvent.onRemove();
|
|
|
|
|
|
|
|
- const { activityService } = this.crowi;
|
|
|
|
|
-
|
|
|
|
|
try {
|
|
try {
|
|
|
const Page = getModelSafely('Page') || require('../models/page')(this.crowi);
|
|
const Page = getModelSafely('Page') || require('../models/page')(this.crowi);
|
|
|
await Page.updateCommentCount(comment.page);
|
|
await Page.updateCommentCount(comment.page);
|
|
@@ -61,14 +59,6 @@ class CommentService {
|
|
|
catch (err) {
|
|
catch (err) {
|
|
|
logger.error('Error occurred while updating the comment count:\n', err);
|
|
logger.error('Error occurred while updating the comment count:\n', err);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- try {
|
|
|
|
|
- // TODO: Able to remove child activities of comment by GW-7510
|
|
|
|
|
- await activityService.removeByPageCommentDelete(comment);
|
|
|
|
|
- }
|
|
|
|
|
- catch (err) {
|
|
|
|
|
- logger.error(err);
|
|
|
|
|
- }
|
|
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|