Explorar o código

creating notification file under events directo

kaori %!s(int64=4) %!d(string=hai) anos
pai
achega
2c402c9433
Modificáronse 1 ficheiros con 17 adicións e 0 borrados
  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;