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

@ -169,7 +169,7 @@ Swimlanes.helpers({
});
}
Cards.find({
ReactiveCache.getCards({
listId: list._id,
swimlaneId: this._id,
}).forEach(card => {
@ -188,13 +188,14 @@ Swimlanes.helpers({
},
cards() {
return Cards.find(
const ret = ReactiveCache.getCards(
Filter.mongoSelector({
swimlaneId: this._id,
archived: false,
}),
{ sort: ['sort'] },
);
return ret;
},
lists() {
@ -227,7 +228,8 @@ Swimlanes.helpers({
},
allCards() {
return Cards.find({ swimlaneId: this._id });
const ret = ReactiveCache.getCards({ swimlaneId: this._id });
return ret;
},
board() {