Shun Miyazawa 4 лет назад
Родитель
Сommit
4929dd125d
1 измененных файлов с 0 добавлено и 26 удалено
  1. 0 26
      packages/app/src/server/service/comment.ts

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

@@ -55,9 +55,6 @@ class CommentService {
       catch (err) {
         logger.error('Error occurred while handling the comment update event:\n', err);
       }
-
-      // TODO: 79713
-      // const { inAppNotificationService } = this.crowi;
     });
 
     // remove
@@ -74,7 +71,6 @@ class CommentService {
     });
   }
 
-
   createAndSendNotifications = async function(comment, actionType) {
     const parameters = {
       user: comment.creator,
@@ -93,28 +89,6 @@ class CommentService {
     await this.inAppNotificationService.upsertByActivity(targetUsers, activity);
   };
 
-
-  /**
-   * @param {Comment} comment
-   * @param {string} actionType
-   * @return {Promise}
-   */
-  createCommentActivity = function(comment, actionType) {
-    const { activityService } = this.crowi;
-
-    const parameters = {
-      user: comment.creator,
-      targetModel: ActivityDefine.MODEL_PAGE,
-      target: comment.page,
-      eventModel: ActivityDefine.MODEL_COMMENT,
-      event: comment._id,
-      action: actionType,
-    };
-
-    return activityService.createByParameters(parameters);
-  };
-
-
 }
 
 module.exports = CommentService;