Dont skip pages

This commit is contained in:
JoannaaKL 2025-03-05 09:27:35 +00:00 committed by GitHub
parent ec9716b3cc
commit 780e24be34
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -70,14 +70,14 @@ export async function listArtifactsPublic(
createdAt: artifact.created_at ? new Date(artifact.created_at) : undefined
})
}
// Move to the next page
currentPageNumber++
// Iterate over any remaining pages
for (
currentPageNumber;
currentPageNumber < numberOfPages;
currentPageNumber++
) {
currentPageNumber++
debug(`Fetching page ${currentPageNumber} of artifact list`)
const {data: listArtifactResponse} =