Move every Lists.findOne() to the ReactiveCache

This commit is contained in:
Martin Filser 2023-01-14 19:33:36 +01:00
parent 06e26d8d89
commit 0926943670
9 changed files with 17 additions and 16 deletions

View file

@ -37,7 +37,7 @@ RulesHelper = {
// in any [*] board
let value = activity[field];
if (field === 'oldListName') {
const oldList = Lists.findOne({ _id: activity.oldListId });
const oldList = ReactiveCache.getList(activity.oldListId);
if (oldList) {
value = oldList.title;
}