mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
Move every Checklists.find(idOrFirstObjectSelector, options) to the ReactiveCache (directory server/)
This commit is contained in:
parent
e5359dc838
commit
b2f19ed714
1 changed files with 2 additions and 2 deletions
|
@ -436,7 +436,7 @@ function buildSelector(queryParams) {
|
||||||
case PREDICATE_CHECKLIST:
|
case PREDICATE_CHECKLIST:
|
||||||
selector.$and.push({
|
selector.$and.push({
|
||||||
_id: {
|
_id: {
|
||||||
$in: Checklists.find({}, { fields: { cardId: 1 } }).map(
|
$in: ReactiveCache.getChecklists({}, { fields: { cardId: 1 } }).map(
|
||||||
a => a.cardId,
|
a => a.cardId,
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
@ -471,7 +471,7 @@ function buildSelector(queryParams) {
|
||||||
{ title: regex },
|
{ title: regex },
|
||||||
{ fields: { cardId: 1, checklistId: 1 } },
|
{ fields: { cardId: 1, checklistId: 1 } },
|
||||||
);
|
);
|
||||||
const checklists = Checklists.find(
|
const checklists = ReactiveCache.getChecklists(
|
||||||
{
|
{
|
||||||
$or: [
|
$or: [
|
||||||
{ title: regex },
|
{ title: regex },
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue