Browse Source

require InAppNotification

kaori 4 năm trước cách đây
mục cha
commit
fdfdd975ee
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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 } };