mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Move every Team.findOne(idOrFirstObjectSelector, options) to the ReactiveCache
This commit is contained in:
parent
cd3a27941c
commit
6c3170360b
1 changed files with 1 additions and 1 deletions
|
|
@ -180,7 +180,7 @@ function buildSelector(queryParams) {
|
||||||
if (queryParams.hasOperator(OPERATOR_TEAM)) {
|
if (queryParams.hasOperator(OPERATOR_TEAM)) {
|
||||||
const teams = [];
|
const teams = [];
|
||||||
queryParams.getPredicates(OPERATOR_TEAM).forEach(name => {
|
queryParams.getPredicates(OPERATOR_TEAM).forEach(name => {
|
||||||
const team = Team.findOne({
|
const team = ReactiveCache.getTeam({
|
||||||
$or: [
|
$or: [
|
||||||
{ teamDisplayName: name },
|
{ teamDisplayName: name },
|
||||||
{ teamShortName: name }
|
{ teamShortName: name }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue