kaori 4 лет назад
Родитель
Сommit
5c85812285

+ 0 - 6
packages/app/src/server/service/comment.ts

@@ -1,9 +1,6 @@
 import loggerFactory from '../../utils/logger';
 import { getModelSafely } from '../util/mongoose-utils';
 
-// const InAppNotificationService = require('./in-app-notification');
-// const ActivityService = require('./activity');
-
 const logger = loggerFactory('growi:service:CommentService');
 
 
@@ -53,9 +50,6 @@ class CommentService {
 
       const { activityService } = this.crowi;
 
-      console.log('this.crowiFUga', this.crowi);
-      // console.log('activityServiceFUga', activityService);
-
       try {
         // TODO: Able to remove child activities of comment by GW-7510
         await activityService.removeByPageCommentDelete(comment);

+ 2 - 2
packages/app/src/server/util/activityDefine.ts

@@ -1,10 +1,10 @@
 const MODEL_PAGE = 'Page';
 const MODEL_COMMENT = 'Comment';
 
-const ACTION_CREATE = 'CREATE'; // Not support yet
 const ACTION_MODIFY = 'MODIFY';
-const ACTION_DELETE = 'DELETE'; // Not support yet
 const ACTION_COMMENT = 'COMMENT';
+const ACTION_CREATE = 'CREATE'; // Not support yet
+const ACTION_DELETE = 'DELETE'; // Not support yet
 const ACTION_LIKE = 'LIKE'; // Not support yet
 
 const getSupportTargetModelNames = () => {