From ef6f15c94963f1241c83cb0013ee52423c8df3c7 Mon Sep 17 00:00:00 2001 From: Emanuele Prella Date: Wed, 20 Dec 2023 10:48:26 +0100 Subject: [PATCH] try to fix build --- src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index 0830572..5008560 100644 --- a/src/main.ts +++ b/src/main.ts @@ -235,11 +235,11 @@ class TestReporter { ): Promise => { const leftAnnotations = [...annotations] let response: RestEndpointMethodTypes['checks']['update']['response'] - while (leftAnnotations.length > 0) { + do { const toProcess = leftAnnotations.splice(0, 50) const status = leftAnnotations.length > 0 ? 'in_progress' : 'completed' response = await this.updateAnnotation(toProcess, {...requestParams, status}) - } + } while (leftAnnotations.length > 0) return response }