소스 검색

renamed a method

kaori 4 년 전
부모
커밋
de81acb09c
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      packages/app/src/server/events/notification.ts
  2. 1 1
      packages/app/src/server/service/notification.ts

+ 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);
   }
 
 }