Move every Cards.find(idOrFirstObjectSelector, options) to the ReactiveCache (directory models/)

This commit is contained in:
Martin Filser 2023-02-14 18:52:36 +01:00
parent 7673c77c57
commit c0ecfb87b0
7 changed files with 60 additions and 48 deletions

View file

@ -41,7 +41,7 @@ class ExporterCardPDF {
}),
);
result.lists = Lists.find(byBoard, noBoardId).fetch();
result.cards = Cards.find(byBoardNoLinked, noBoardId).fetch();
result.cards = ReactiveCache.getCards(byBoardNoLinked, noBoardId);
result.swimlanes = Swimlanes.find(byBoard, noBoardId).fetch();
result.customFields = CustomFields.find(
{
@ -75,9 +75,9 @@ class ExporterCardPDF {
}).fetch(),
);
result.subtaskItems.push(
...Cards.find({
...ReactiveCache.getCards({
parentId: card._id,
}).fetch(),
}),
);
});
result.rules.forEach((rule) => {