mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +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
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue