mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 13:37:09 -04:00
Move every Attachments.find(idOrFirstObjectSelector, options) to the ReactiveCache (directory server/)
This commit is contained in:
parent
fb3b47e2bb
commit
5eb4eb04c4
1 changed files with 2 additions and 2 deletions
|
@ -427,7 +427,7 @@ function buildSelector(queryParams) {
|
|||
case PREDICATE_ATTACHMENT:
|
||||
selector.$and.push({
|
||||
_id: {
|
||||
$in: Attachments.find({}, { fields: { cardId: 1 } }).map(
|
||||
$in: ReactiveCache.getAttachments({}, { fields: { cardId: 1 } }).map(
|
||||
a => a.cardId,
|
||||
),
|
||||
},
|
||||
|
@ -481,7 +481,7 @@ function buildSelector(queryParams) {
|
|||
{ fields: { cardId: 1 } },
|
||||
);
|
||||
|
||||
const attachments = Attachments.find({ 'original.name': regex });
|
||||
const attachments = ReactiveCache.getAttachments({ 'original.name': regex });
|
||||
|
||||
const comments = ReactiveCache.getCardComments(
|
||||
{ text: regex },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue