mirror of
https://github.com/wekan/wekan.git
synced 2025-12-22 18:30:13 +01:00
Move every Cards.find(idOrFirstObjectSelector, options) to the ReactiveCache (directory client/)
This commit is contained in:
parent
66c2140911
commit
7673c77c57
11 changed files with 38 additions and 34 deletions
|
|
@ -50,7 +50,7 @@ function getCardsBetween(idA, idB) {
|
|||
};
|
||||
}
|
||||
|
||||
return Cards.find(Filter.mongoSelector(selector)).map(pluckId);
|
||||
return ReactiveCache.getCards(Filter.mongoSelector(selector)).map(pluckId);
|
||||
}
|
||||
|
||||
MultiSelection = {
|
||||
|
|
@ -79,7 +79,7 @@ MultiSelection = {
|
|||
},
|
||||
|
||||
count() {
|
||||
return Cards.find(this.getMongoSelector()).count();
|
||||
return ReactiveCache.getCards(this.getMongoSelector()).length;
|
||||
},
|
||||
|
||||
isEmpty() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue