diff --git a/server/publications/cards.js b/server/publications/cards.js index 12e0f3394..c263a5228 100644 --- a/server/publications/cards.js +++ b/server/publications/cards.js @@ -260,10 +260,10 @@ function buildSelector(queryParams) { if (queryParams.hasOperator(OPERATOR_SWIMLANE)) { const querySwimlanes = []; queryParams.getPredicates(OPERATOR_SWIMLANE).forEach(query => { - const swimlanes = Swimlanes.find({ + const swimlanes = ReactiveCache.getSwimlanes({ title: new RegExp(escapeForRegex(query), 'i'), }); - if (swimlanes.count()) { + if (swimlanes.length) { swimlanes.forEach(swim => { querySwimlanes.push(swim._id); });