浏览代码

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

Martin Filser 2 年之前
父节点
当前提交
59ee616304
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 } },
       );