Move every Activities.findOne() to the ReactiveCache

This commit is contained in:
Martin Filser 2023-02-04 00:18:15 +01:00
parent 54f7361767
commit 79ea4d6d1e
3 changed files with 27 additions and 4 deletions

View file

@ -808,7 +808,7 @@ Users.helpers({
const notification = notifications[index];
// this preserves their db sort order for editing
notification.dbIndex = index;
notification.activity = Activities.findOne(notification.activity);
notification.activity = ReactiveCache.getActivity(notification.activity);
}
// this sorts them newest to oldest to match Trello's behavior
notifications.reverse();