mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Move every Actions.findOne(idOrFirstObjectSelector, options) to the ReactiveCache
This commit is contained in:
parent
c262620993
commit
b48297df22
3 changed files with 53 additions and 5 deletions
|
|
@ -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);
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue