Browse Source

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

Martin Filser 2 years ago
parent
commit
1c966ed7b4
1 changed files with 2 additions and 2 deletions
  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);
           });