Przeglądaj źródła

Move every Triggers.find(idOrFirstObjectSelector, options) to the ReactiveCache (directory server/)

Martin Filser 2 lat temu
rodzic
commit
ebb356cf2d
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      server/rulesHelper.js

+ 1 - 1
server/rulesHelper.js

@@ -17,7 +17,7 @@ RulesHelper = {
     }
     const matchingFields = TriggersDef[activityType].matchingFields;
     const matchingMap = this.buildMatchingFieldsMap(activity, matchingFields);
-    const matchingTriggers = Triggers.find(matchingMap);
+    const matchingTriggers = ReactiveCache.getTriggers(matchingMap);
     const matchingRules = [];
     matchingTriggers.forEach(function(trigger) {
       const rule = trigger.getRule();