mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Move every Triggers.findOne(idOrFirstObjectSelector, options) to the ReactiveCache
This commit is contained in:
parent
b48297df22
commit
f5796faa84
3 changed files with 53 additions and 5 deletions
|
|
@ -61,13 +61,13 @@ Rules.helpers({
|
|||
return ReactiveCache.getAction(this.actionId);
|
||||
},
|
||||
getTrigger() {
|
||||
return Triggers.findOne({ _id: this.triggerId });
|
||||
return ReactiveCache.getTrigger(this.triggerId);
|
||||
},
|
||||
board() {
|
||||
return ReactiveCache.getBoard(this.boardId);
|
||||
},
|
||||
trigger() {
|
||||
return Triggers.findOne({ _id: this.triggerId });
|
||||
return ReactiveCache.getTrigger(this.triggerId);
|
||||
},
|
||||
action() {
|
||||
return ReactiveCache.getAction(this.actionId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue