Sfoglia il codice sorgente

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

Martin Filser 2 anni fa
parent
commit
ebb356cf2d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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();