Browse Source

renamed a method

kaori 4 years ago
parent
commit
de81acb09c

+ 1 - 1
packages/app/src/server/events/notification.ts

@@ -14,7 +14,7 @@ function NotificationEvent(crowi) {
 util.inherits(NotificationEvent, events.EventEmitter);
 
 
-NotificationEvent.prototype.onUpdateComment = function(page, user) {
+NotificationEvent.prototype.onUpdate = function(page, user) {
   logger.error('onUpdate event fired');
 };
 

+ 1 - 1
packages/app/src/server/service/notification.ts

@@ -13,7 +13,7 @@ class NortificationService {
 
     // init
     // comments
-    this.notificationEvent.on('update', this.notificationEvent.onUpdateComment);
+    this.notificationEvent.on('update', this.notificationEvent.onUpdate);
   }
 
 }