kaori 4 лет назад
Родитель
Сommit
d2d7d2a616

+ 1 - 1
packages/app/src/server/models/notification.ts

@@ -43,7 +43,7 @@ export interface NotificationModel extends Model<NotificationDocument> {
 }
 
 export default (crowi: Crowi) => {
-  const notificationEvent = crowi.event('Notification');
+  const notificationEvent = crowi.event('notification');
 
   const notificationSchema = new Schema<NotificationDocument, NotificationModel>({
     user: {

+ 2 - 1
packages/app/src/server/service/notification.ts

@@ -12,7 +12,8 @@ class NortificationService {
     this.notificationEvent = crowi.event('notification');
 
     // init
-    this.notificationEvent.on('update', this.notificationEvent.onUpdate);
+    // comments
+    this.notificationEvent.on('update', this.notificationEvent.onUpdateComment);
   }
 
 }