Shun Miyazawa 3 лет назад
Родитель
Сommit
7f0a2d4e93
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      packages/app/src/server/service/activity.ts

+ 4 - 2
packages/app/src/server/service/activity.ts

@@ -22,6 +22,8 @@ class ActivityService {
     this.crowi = crowi;
     this.crowi = crowi;
     this.activityEvent = crowi.event('activity');
     this.activityEvent = crowi.event('activity');
 
 
+    this.shoudUpdateActivity = this.shoudUpdateActivity.bind(this);
+
     this.initActivityEventListeners();
     this.initActivityEventListeners();
   }
   }
 
 
@@ -40,9 +42,9 @@ class ActivityService {
     });
     });
   }
   }
 
 
-  shoudCreateActivity = function(action: SupportedActionType): boolean {
+  shoudUpdateActivity = function(action: SupportedActionType): boolean {
     const configManager = this.crowi.configManager;
     const configManager = this.crowi.configManager;
-    const auditLogActionGroupSize = configManager != null ? configManager.getConfig('crowi', 'app:auditLogActionGroupSize') : 'SMALL';
+    const auditLogActionGroupSize = configManager != null ? configManager.getConfig('crowi', 'app:auditLogActionGroupSize') : ActionGroupSize.Small;
 
 
     switch (auditLogActionGroupSize) {
     switch (auditLogActionGroupSize) {
       case ActionGroupSize.Small:
       case ActionGroupSize.Small: