|
@@ -17,7 +17,7 @@ class ActivityService {
|
|
|
|
|
|
|
|
constructor(crowi) {
|
|
constructor(crowi) {
|
|
|
this.crowi = crowi;
|
|
this.crowi = crowi;
|
|
|
- this.inAppNotificationService = crowi.inAppNotificationService
|
|
|
|
|
|
|
+ this.inAppNotificationService = crowi.inAppNotificationService;
|
|
|
this.commentEvent = crowi.event('comment');
|
|
this.commentEvent = crowi.event('comment');
|
|
|
|
|
|
|
|
// init
|
|
// init
|
|
@@ -42,7 +42,7 @@ class ActivityService {
|
|
|
// update
|
|
// update
|
|
|
this.commentEvent.on('update', (user) => {
|
|
this.commentEvent.on('update', (user) => {
|
|
|
this.commentEvent.onUpdate();
|
|
this.commentEvent.onUpdate();
|
|
|
- const inAppNotificationService = new InAppNotificationService(this.crowi)
|
|
|
|
|
|
|
+ const inAppNotificationService = new InAppNotificationService(this.crowi);
|
|
|
|
|
|
|
|
inAppNotificationService.emitSocketIo(user);
|
|
inAppNotificationService.emitSocketIo(user);
|
|
|
});
|
|
});
|