Move every Checklists.find(idOrFirstObjectSelector, options) to the ReactiveCache (directory server/)

This commit is contained in:
Martin Filser 2023-02-25 18:14:51 +01:00
parent e5359dc838
commit b2f19ed714

View file

@ -436,7 +436,7 @@ function buildSelector(queryParams) {
case PREDICATE_CHECKLIST:
selector.$and.push({
_id: {
$in: Checklists.find({}, { fields: { cardId: 1 } }).map(
$in: ReactiveCache.getChecklists({}, { fields: { cardId: 1 } }).map(
a => a.cardId,
),
},
@ -471,7 +471,7 @@ function buildSelector(queryParams) {
{ title: regex },
{ fields: { cardId: 1, checklistId: 1 } },
);
const checklists = Checklists.find(
const checklists = ReactiveCache.getChecklists(
{
$or: [
{ title: regex },