mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 13:37:09 -04: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:
|
||||
selector.$and.push({
|
||||
_id: {
|
||||
$in: Checklists.find({}, { fields: { cardId: 1 } }).map(
|
||||
$in: ReactiveCache.getChecklists({}, { fields: { cardId: 1 } }).map(
|
||||
a => a.cardId,
|
||||
),
|
||||
},
|
||||
|
@ -471,7 +471,7 @@ function buildSelector(queryParams) {
|
|||
{ title: regex },
|
||||
{ fields: { cardId: 1, checklistId: 1 } },
|
||||
);
|
||||
const checklists = Checklists.find(
|
||||
const checklists = ReactiveCache.getChecklists(
|
||||
{
|
||||
$or: [
|
||||
{ title: regex },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue