Quellcode durchsuchen

init notificationEvent

kaori vor 4 Jahren
Ursprung
Commit
936e2c5362
1 geänderte Dateien mit 12 neuen und 0 gelöschten Zeilen
  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);
+  }
 
 }