fix(core): update

This commit is contained in:
Philipp Kunz 2020-01-23 18:09:09 +00:00
parent 9035fafdc2
commit 11921a2864

View File

@ -32,6 +32,8 @@ export class SmartRule<T> {
const outcomes: TTreeActionResult[] = [];
for (const rule of nextBatch) {
const checkResult = await rule.checkFunction(objectArg);
checkResult ? null : console.log('WARNING!!! Please make sure your rule always returns a statement of how to continue!');
if (checkResult.startsWith("apply")) {
await rule.actionFunction(objectArg); // here the action function is run
}