mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
Move every Rules.find(idOrFirstObjectSelector, options) to the ReactiveCache (directory server/)
This commit is contained in:
parent
99ab6d13d4
commit
0e0ac36788
1 changed files with 9 additions and 5 deletions
|
@ -5,14 +5,18 @@ import Rules from '/models/rules';
|
|||
|
||||
Meteor.publish('rules', ruleId => {
|
||||
check(ruleId, String);
|
||||
const ret = Rules.find({
|
||||
_id: ruleId,
|
||||
});
|
||||
const ret = ReactiveCache.getRules(
|
||||
{
|
||||
_id: ruleId,
|
||||
},
|
||||
{},
|
||||
true,
|
||||
);
|
||||
return ret;
|
||||
});
|
||||
|
||||
Meteor.publish('allRules', () => {
|
||||
const ret = Rules.find({});
|
||||
const ret = ReactiveCache.getRules({}, {}, true);
|
||||
return ret;
|
||||
});
|
||||
|
||||
|
@ -27,7 +31,7 @@ Meteor.publish('allActions', () => {
|
|||
});
|
||||
|
||||
Meteor.publish('rulesReport', () => {
|
||||
const rules = Rules.find();
|
||||
const rules = ReactiveCache.getRules({}, {}, true);
|
||||
const actionIds = [];
|
||||
const triggerIds = [];
|
||||
const boardIds = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue