Move every Team.findOne(idOrFirstObjectSelector, options) to the ReactiveCache

This commit is contained in:
Martin Filser 2023-02-04 17:18:10 +01:00
parent cd3a27941c
commit 6c3170360b

View file

@ -180,7 +180,7 @@ function buildSelector(queryParams) {
if (queryParams.hasOperator(OPERATOR_TEAM)) {
const teams = [];
queryParams.getPredicates(OPERATOR_TEAM).forEach(name => {
const team = Team.findOne({
const team = ReactiveCache.getTeam({
$or: [
{ teamDisplayName: name },
{ teamShortName: name }