Shun Miyazawa hace 4 años
padre
commit
88bfbee6e5
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      packages/app/src/server/models/activity.ts

+ 2 - 2
packages/app/src/server/models/activity.ts

@@ -184,8 +184,8 @@ module.exports = function(crowi: Crowi) {
     const model: any = await this.model(targetModel).findById(target);
     const [targetUsers, watchUsers, ignoreUsers] = await Promise.all([
       model.getNotificationTargetUsers(),
-      Watcher.getWatchers((target as any) as Types.ObjectId),
-      Watcher.getIgnorers((target as any) as Types.ObjectId),
+      Subscription.getWatchers((target as any) as Types.ObjectId),
+      Subscription.getUnwatchers((target as any) as Types.ObjectId),
     ]);
 
     const unique = array => Object.values(array.reduce((objects, object) => ({ ...objects, [object.toString()]: object }), {}));