try to fix build

This commit is contained in:
Emanuele Prella 2023-12-20 10:48:26 +01:00
parent 16a69ceefa
commit ef6f15c949
No known key found for this signature in database
GPG key ID: 5DEFDE943B1234A7

View file

@ -235,11 +235,11 @@ class TestReporter {
): Promise<RestEndpointMethodTypes['checks']['update']['response']> => {
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
}