From b2f19ed714a80c9339e909bd2acbbc9ab19b8cc9 Mon Sep 17 00:00:00 2001 From: Martin Filser Date: Sat, 25 Feb 2023 18:14:51 +0100 Subject: [PATCH] Move every Checklists.find(idOrFirstObjectSelector, options) to the ReactiveCache (directory server/) --- server/publications/cards.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/publications/cards.js b/server/publications/cards.js index c263a5228..463407c21 100644 --- a/server/publications/cards.js +++ b/server/publications/cards.js @@ -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 },