Move every Actions.findOne(idOrFirstObjectSelector, options) to the ReactiveCache

This commit is contained in:
Martin Filser 2023-02-04 21:16:27 +01:00
parent c262620993
commit b48297df22
3 changed files with 53 additions and 5 deletions

View file

@ -58,7 +58,7 @@ Rules.mutations({
Rules.helpers({
getAction() {
return Actions.findOne({ _id: this.actionId });
return ReactiveCache.getAction(this.actionId);
},
getTrigger() {
return Triggers.findOne({ _id: this.triggerId });
@ -70,7 +70,7 @@ Rules.helpers({
return Triggers.findOne({ _id: this.triggerId });
},
action() {
return Actions.findOne({ _id: this.actionId });
return ReactiveCache.getAction(this.actionId);
},
});