mirror of
https://github.com/wekan/wekan.git
synced 2025-12-21 01:40:13 +01: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)) {
|
if (queryParams.hasOperator(OPERATOR_SWIMLANE)) {
|
||||||
const querySwimlanes = [];
|
const querySwimlanes = [];
|
||||||
queryParams.getPredicates(OPERATOR_SWIMLANE).forEach(query => {
|
queryParams.getPredicates(OPERATOR_SWIMLANE).forEach(query => {
|
||||||
const swimlanes = Swimlanes.find({
|
const swimlanes = ReactiveCache.getSwimlanes({
|
||||||
title: new RegExp(escapeForRegex(query), 'i'),
|
title: new RegExp(escapeForRegex(query), 'i'),
|
||||||
});
|
});
|
||||||
if (swimlanes.count()) {
|
if (swimlanes.length) {
|
||||||
swimlanes.forEach(swim => {
|
swimlanes.forEach(swim => {
|
||||||
querySwimlanes.push(swim._id);
|
querySwimlanes.push(swim._id);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue