fix(core): update
This commit is contained in:
parent
e67fbfebf6
commit
773ae00517
@ -33,7 +33,7 @@ export class SmartRule<T> {
|
|||||||
for (const rule of nextBatch) {
|
for (const rule of nextBatch) {
|
||||||
const checkResult = await rule.checkFunction(objectArg);
|
const checkResult = await rule.checkFunction(objectArg);
|
||||||
if (checkResult.startsWith("apply")) {
|
if (checkResult.startsWith("apply")) {
|
||||||
await rule.actionFunction(objectArg);
|
await rule.actionFunction(objectArg); // here the action function is run
|
||||||
}
|
}
|
||||||
outcomes.push(checkResult);
|
outcomes.push(checkResult);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user