From 59ee6163042e446e665137894eb1313560fd1039 Mon Sep 17 00:00:00 2001 From: Martin Filser Date: Sat, 25 Feb 2023 20:10:45 +0100 Subject: [PATCH] Move every CardComments.find(idOrFirstObjectSelector, options) to the ReactiveCache (directory server/) --- server/publications/cards.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/publications/cards.js b/server/publications/cards.js index 463407c21..37c7ff845 100644 --- a/server/publications/cards.js +++ b/server/publications/cards.js @@ -483,7 +483,7 @@ function buildSelector(queryParams) { const attachments = Attachments.find({ 'original.name': regex }); - const comments = CardComments.find( + const comments = ReactiveCache.getCardComments( { text: regex }, { fields: { cardId: 1 } }, );