mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 07:50:12 +01: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', () => {
|
Meteor.publish('allTriggers', () => {
|
||||||
const ret = Triggers.find({});
|
const ret = ReactiveCache.getTriggers({}, {}, true);
|
||||||
return ret;
|
return ret;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -45,7 +45,7 @@ Meteor.publish('rulesReport', () => {
|
||||||
const ret = [
|
const ret = [
|
||||||
rules,
|
rules,
|
||||||
ReactiveCache.getActions({ _id: { $in: actionIds } }, {}, true),
|
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),
|
ReactiveCache.getBoards({ _id: { $in: boardIds } }, { fields: { title: 1 } }, true),
|
||||||
];
|
];
|
||||||
return ret;
|
return ret;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue