fix(core): update
This commit is contained in:
parent
8c257bc0fd
commit
b3b02fee70
@ -26,7 +26,7 @@ export class SmartRule<T> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// lets run the checks
|
// lets run the checks
|
||||||
const runNextBatch = async (startPriority: number) => {
|
const runNextBatch = async (startPriority: number): Promise<void> => {
|
||||||
const nextBatch = getNextParallelBatch(0);
|
const nextBatch = getNextParallelBatch(0);
|
||||||
const outcomes: TTreeActionResult[] = [];
|
const outcomes: TTreeActionResult[] = [];
|
||||||
for (const rule of nextBatch) {
|
for (const rule of nextBatch) {
|
||||||
@ -51,7 +51,9 @@ export class SmartRule<T> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (startPriority < this.rules[this.rules.length-1].priority) {
|
if (startPriority < this.rules[this.rules.length-1].priority) {
|
||||||
runNextBatch(startPriority++);
|
await runNextBatch(startPriority++);
|
||||||
|
} else {
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user