Parcourir la source

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

Martin Filser il y a 2 ans
Parent
commit
59ee616304
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      server/publications/cards.js

+ 1 - 1
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 } },
       );