mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 13:37:09 -04:00
Move every Swimlanes.find(idOrFirstObjectSelector, options) to the ReactiveCache (directory server/)
This commit is contained in:
parent
33a8de7bb5
commit
4d192a0165
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue