|
|
@@ -33,14 +33,11 @@ class CommentService {
|
|
|
// create
|
|
|
this.commentEvent.on('create', async(savedComment) => {
|
|
|
const { activityService } = this.crowi;
|
|
|
- console.log('activityServiceHoge', activityService);
|
|
|
|
|
|
try {
|
|
|
const Page = getModelSafely('Page') || require('../models/page')(this.crowi);
|
|
|
await Page.updateCommentCount(savedComment.page);
|
|
|
|
|
|
-
|
|
|
- // const Activity = getModelSafely('Activity') || require('../models/activity')(this.crowi);
|
|
|
const savedActivity = await activityService.createByPageComment(savedComment);
|
|
|
|
|
|
let targetUsers: Types.ObjectId[] = [];
|