Skip to content

Commit

Permalink
Merge pull request #79 from Alec2435/master
Browse files Browse the repository at this point in the history
Fixed issue with sync not taking effect
  • Loading branch information
mithunsatheesh committed Sep 28, 2020
2 parents 65acf2a + 396c41d commit 3e36734
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/node-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
RuleEngine.prototype.execute = function(fact, callback) {
//these new attributes have to be in both last session and current session to support
// the compare function
var thisHolder = this;
var complete = false;
fact.result = true;
var session = clonedeep(fact);
Expand Down Expand Up @@ -93,6 +94,7 @@
}
}
};
_rules = thisHolder.activeRules;
if (x < _rules.length && complete === false) {
var _rule = _rules[x].condition;
_rule.call(session, API, session);
Expand Down

0 comments on commit 3e36734

Please sign in to comment.