mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 13:37:09 -04:00
Move every Triggers.find(idOrFirstObjectSelector, options) to the ReactiveCache (directory server/)
This commit is contained in:
parent
6d949ccdb4
commit
a423f7883e
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ Meteor.publish('allRules', () => {
|
|||
});
|
||||
|
||||
Meteor.publish('allTriggers', () => {
|
||||
const ret = Triggers.find({});
|
||||
const ret = ReactiveCache.getTriggers({}, {}, true);
|
||||
return ret;
|
||||
});
|
||||
|
||||
|
@ -45,7 +45,7 @@ Meteor.publish('rulesReport', () => {
|
|||
const ret = [
|
||||
rules,
|
||||
ReactiveCache.getActions({ _id: { $in: actionIds } }, {}, true),
|
||||
Triggers.find({ _id: { $in: triggerIds } }),
|
||||
ReactiveCache.getTriggers({ _id: { $in: triggerIds } }, {}, true),
|
||||
ReactiveCache.getBoards({ _id: { $in: boardIds } }, { fields: { title: 1 } }, true),
|
||||
];
|
||||
return ret;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue