|
@@ -39,6 +39,7 @@ class CommentService {
|
|
|
let targetUsers: Types.ObjectId[] = [];
|
|
let targetUsers: Types.ObjectId[] = [];
|
|
|
targetUsers = await savedActivity.getNotificationTargetUsers();
|
|
targetUsers = await savedActivity.getNotificationTargetUsers();
|
|
|
|
|
|
|
|
|
|
+ await this.inAppNotificationService.emitSocketIo(targetUsers);
|
|
|
await this.inAppNotificationService.upsertByActivity(targetUsers, savedActivity);
|
|
await this.inAppNotificationService.upsertByActivity(targetUsers, savedActivity);
|
|
|
}
|
|
}
|
|
|
catch (err) {
|
|
catch (err) {
|
|
@@ -50,9 +51,10 @@ class CommentService {
|
|
|
// update
|
|
// update
|
|
|
this.commentEvent.on('update', (userId, pageId) => {
|
|
this.commentEvent.on('update', (userId, pageId) => {
|
|
|
this.commentEvent.onUpdate();
|
|
this.commentEvent.onUpdate();
|
|
|
- const { inAppNotificationService } = this.crowi;
|
|
|
|
|
|
|
|
|
|
- inAppNotificationService.emitSocketIo(userId, pageId);
|
|
|
|
|
|
|
+ // TODO: 79713
|
|
|
|
|
+ // const { inAppNotificationService } = this.crowi;
|
|
|
|
|
+ // inAppNotificationService.emitSocketIo(userId, pageId);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
// remove
|
|
// remove
|
|
@@ -76,6 +78,7 @@ class CommentService {
|
|
|
createByPageComment = function(comment) {
|
|
createByPageComment = function(comment) {
|
|
|
const { activityService } = this.crowi;
|
|
const { activityService } = this.crowi;
|
|
|
|
|
|
|
|
|
|
+ // TODO: Changing the action name in Create and Update
|
|
|
|
|
|
|
|
const parameters = {
|
|
const parameters = {
|
|
|
user: comment.creator,
|
|
user: comment.creator,
|