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

This commit is contained in:
Martin Filser 2023-02-04 20:41:26 +01:00
parent 41685536d7
commit c262620993
3 changed files with 55 additions and 9 deletions

View file

@ -41,9 +41,7 @@ Triggers.helpers({
},
getRule() {
return Rules.findOne({
triggerId: this._id,
});
return ReactiveCache.getRule({ triggerId: this._id });
},
fromList() {