notification.ts 473 B

12345678910111213141516171819202122
  1. import loggerFactory from '~/utils/logger';
  2. const logger = loggerFactory('growi:events:notification');
  3. const util = require('util');
  4. const events = require('events');
  5. function NotificationEvent(crowi) {
  6. this.crowi = crowi;
  7. events.EventEmitter.call(this);
  8. }
  9. util.inherits(NotificationEvent, events.EventEmitter);
  10. NotificationEvent.prototype.onUpdateComment = function(page, user) {
  11. logger.error('onUpdate event fired');
  12. };
  13. module.exports = NotificationEvent;