fix(core): update

This commit is contained in:
Philipp Kunz 2020-01-23 15:12:55 +00:00
parent 8c257bc0fd
commit b3b02fee70

View File

@ -26,7 +26,7 @@ export class SmartRule<T> {
};
// lets run the checks
const runNextBatch = async (startPriority: number) => {
const runNextBatch = async (startPriority: number): Promise<void> => {
const nextBatch = getNextParallelBatch(0);
const outcomes: TTreeActionResult[] = [];
for (const rule of nextBatch) {
@ -51,7 +51,9 @@ export class SmartRule<T> {
}
if (startPriority < this.rules[this.rules.length-1].priority) {
runNextBatch(startPriority++);
await runNextBatch(startPriority++);
} else {
return;
}
};