kaori 4 лет назад
Родитель
Сommit
936e2c5362
1 измененных файлов с 12 добавлено и 0 удалено
  1. 12 0
      packages/app/src/server/service/notification.ts

+ 12 - 0
packages/app/src/server/service/notification.ts

@@ -2,6 +2,18 @@
 
 class NortificationService {
 
+  crowi!: any;
+
+  notificationEvent!: any;
+
+
+  constructor(crowi) {
+    this.crowi = crowi;
+    this.notificationEvent = crowi.event('notification');
+
+    // init
+    this.notificationEvent.on('update', this.notificationEvent.onUpdate);
+  }
 
 }