Преглед изворни кода

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

Martin Filser пре 2 година
родитељ
комит
ebb356cf2d
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      server/rulesHelper.js

+ 1 - 1
server/rulesHelper.js

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