Move every Lists.findOne() to the ReactiveCache

This commit is contained in:
Martin Filser 2023-01-14 19:33:36 +01:00
parent 06e26d8d89
commit 0926943670
9 changed files with 17 additions and 16 deletions

View file

@ -8,8 +8,8 @@ function getCardsBetween(idA, idB) {
function getListsStrictlyBetween(id1, id2) {
return Lists.find({
$and: [
{ sort: { $gt: Lists.findOne(id1).sort } },
{ sort: { $lt: Lists.findOne(id2).sort } },
{ sort: { $gt: ReactiveCache.getList(id1).sort } },
{ sort: { $lt: ReactiveCache.getList(id2).sort } },
],
archived: false,
}).map(pluckId);