CacheControl/json-rules-engine

updateRule not working

axchanda opened this issue · 0 comments

engine.updateRule(rule)
^

TypeError: engine.updateRule is not a function
at Rule. (/home/ashwin/sandbox/json-rules-engine/examples/sandbox.js:86:16)
at Rule.EventEmitter.emitAsync (/home/ashwin/sandbox/json-rules-engine/examples/node_modules/eventemitter2/lib/eventemitter2.js:1133:31)
at processResult (/home/ashwin/sandbox/json-rules-engine/examples/node_modules/json-rules-engine/dist/rule.js:339:23)
at /home/ashwin/sandbox/json-rules-engine/examples/node_modules/json-rules-engine/dist/rule.js:350:18
at async Promise.all (index 0)