瀏覽代碼

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