mirror of
https://github.com/wekan/wekan.git
synced 2025-12-21 18:00:12 +01:00
Move every Cards.find(idOrFirstObjectSelector, options) to the ReactiveCache (directory models/)
This commit is contained in:
parent
7673c77c57
commit
c0ecfb87b0
7 changed files with 60 additions and 48 deletions
|
|
@ -43,7 +43,7 @@ class ExporterExcel {
|
|||
}),
|
||||
);
|
||||
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(
|
||||
{
|
||||
|
|
@ -77,9 +77,9 @@ class ExporterExcel {
|
|||
}).fetch(),
|
||||
);
|
||||
result.subtaskItems.push(
|
||||
...Cards.find({
|
||||
...ReactiveCache.getCards({
|
||||
parentId: card._id,
|
||||
}).fetch(),
|
||||
}),
|
||||
);
|
||||
});
|
||||
result.rules.forEach((rule) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue