Move every Cards.find(idOrFirstObjectSelector, options) to the ReactiveCache (directory client/)

This commit is contained in:
Martin Filser 2023-02-14 18:52:36 +01:00
parent 66c2140911
commit 7673c77c57
11 changed files with 38 additions and 34 deletions

View file

@ -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() {