kaori 4 лет назад
Родитель
Сommit
551adb5089
1 измененных файлов с 0 добавлено и 11 удалено
  1. 0 11
      packages/app/src/server/models/in-app-notification.ts

+ 0 - 11
packages/app/src/server/models/in-app-notification.ts

@@ -112,17 +112,6 @@ export default (crowi: Crowi) => {
       .exec();
   };
 
-  inAppNotificationSchema.statics.removeActivity = async function(activity) {
-    const { _id, target, action } = activity;
-    const query = { target, action };
-    const parameters = { $pull: { activities: _id } };
-
-    const result = await InAppNotification.updateMany(query, parameters);
-
-    await InAppNotification.removeEmpty();
-    return result;
-  };
-
   inAppNotificationSchema.statics.removeEmpty = function() {
     return InAppNotification.deleteMany({ activities: { $size: 0 } });
   };