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