mirror of
https://github.com/wekan/wekan.git
synced 2026-01-05 17:18:49 +01:00
Move every Activities.findOne() to the ReactiveCache
This commit is contained in:
parent
54f7361767
commit
79ea4d6d1e
3 changed files with 27 additions and 4 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue