소스 검색

require InAppNotification

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

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

@@ -31,6 +31,7 @@ class InAppNotificationService {
   }
 
   removeActivity = async function(activity) {
+    const InAppNotification = require('../models/in-app-notification')(this.crowi);
     const { _id, target, action } = activity;
     const query = { target, action };
     const parameters = { $pull: { activities: _id } };