Просмотр исходного кода

creating notification file under events directo

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

+ 17 - 0
packages/app/src/server/events/notification.ts

@@ -0,0 +1,17 @@
+const debug = require('debug')('growi:events:page');
+const util = require('util');
+const events = require('events');
+
+function NotificationEvent(crowi) {
+  this.crowi = crowi;
+
+  events.EventEmitter.call(this);
+}
+util.inherits(NotificationEvent, events.EventEmitter);
+
+NotificationEvent.prototype.onUpdate = function(page, user) {
+  debug('onUpdate event fired');
+};
+
+
+module.exports = NotificationEvent;