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

@ -98,7 +98,7 @@ export class Exporter {
}
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(
{ boardIds: this._boardId },
@ -124,9 +124,9 @@ export class Exporter {
}).fetch(),
);
result.subtaskItems.push(
...Cards.find({
...ReactiveCache.getCards({
parentId: card._id,
}).fetch(),
}),
);
});
result.rules.forEach((rule) => {