Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9035fafdc2 | |||
| 773ae00517 |
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pushrocks/smartrule",
|
||||
"version": "1.0.7",
|
||||
"version": "1.0.8",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pushrocks/smartrule",
|
||||
"version": "1.0.7",
|
||||
"version": "1.0.8",
|
||||
"private": false,
|
||||
"description": "a smart rule library for handling decision trees.",
|
||||
"main": "dist/index.js",
|
||||
|
||||
@@ -33,7 +33,7 @@ export class SmartRule<T> {
|
||||
for (const rule of nextBatch) {
|
||||
const checkResult = await rule.checkFunction(objectArg);
|
||||
if (checkResult.startsWith("apply")) {
|
||||
await rule.actionFunction(objectArg);
|
||||
await rule.actionFunction(objectArg); // here the action function is run
|
||||
}
|
||||
outcomes.push(checkResult);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user