浏览代码

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

Martin Filser 2 年之前
父节点
当前提交
1c966ed7b4
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      server/publications/cards.js

+ 2 - 2
server/publications/cards.js

@@ -282,10 +282,10 @@ function buildSelector(queryParams) {
     if (queryParams.hasOperator(OPERATOR_LIST)) {
       const queryLists = [];
       queryParams.getPredicates(OPERATOR_LIST).forEach(query => {
-        const lists = Lists.find({
+        const lists = ReactiveCache.getLists({
           title: new RegExp(escapeForRegex(query), 'i'),
         });
-        if (lists.count()) {
+        if (lists.length) {
           lists.forEach(list => {
             queryLists.push(list._id);
           });