kaori 4 سال پیش
والد
کامیت
d2d7d2a616
2فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 1 1
      packages/app/src/server/models/notification.ts
  2. 2 1
      packages/app/src/server/service/notification.ts

+ 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);
   }
 
 }