Explorar o código

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

Martin Filser %!s(int64=2) %!d(string=hai) anos
pai
achega
59ee616304
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 attachments = Attachments.find({ 'original.name': regex });
 
 
-      const comments = CardComments.find(
+      const comments = ReactiveCache.getCardComments(
         { text: regex },
         { text: regex },
         { fields: { cardId: 1 } },
         { fields: { cardId: 1 } },
       );
       );