mirror of
https://github.com/wekan/wekan.git
synced 2026-02-27 18:34:07 +01:00
Move every ChecklistItems.find(idOrFirstObjectSelector, options) to the ReactiveCache (directory server/)
This commit is contained in:
parent
5fe78a477c
commit
06f0ceebd1
2 changed files with 12 additions and 8 deletions
|
|
@ -38,13 +38,17 @@ Meteor.publish('notificationCards', function() {
|
|||
|
||||
// gets all checklistItems associated with activities associated with the current user
|
||||
Meteor.publish('notificationChecklistItems', function() {
|
||||
const ret = ChecklistItems.find({
|
||||
_id: {
|
||||
$in: activities()
|
||||
.map(v => v.checklistItemId)
|
||||
.filter(v => !!v),
|
||||
const ret = ReactiveCache.getChecklistItems(
|
||||
{
|
||||
_id: {
|
||||
$in: activities()
|
||||
.map(v => v.checklistItemId)
|
||||
.filter(v => !!v),
|
||||
},
|
||||
},
|
||||
});
|
||||
{},
|
||||
true,
|
||||
);
|
||||
return ret;
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue