瀏覽代碼

init notificationEvent

kaori 4 年之前
父節點
當前提交
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);
+  }
 
 }