From 11921a2864b304653026ed323c00363a964a57d6 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Thu, 23 Jan 2020 18:09:09 +0000 Subject: [PATCH] fix(core): update --- ts/smartrule.classes.smartrule.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ts/smartrule.classes.smartrule.ts b/ts/smartrule.classes.smartrule.ts index e996c51..f95b74b 100644 --- a/ts/smartrule.classes.smartrule.ts +++ b/ts/smartrule.classes.smartrule.ts @@ -32,6 +32,8 @@ export class SmartRule { 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 }