瀏覽代碼

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 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();