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