diff --git a/src/scripts/update-repos-metadata.ts b/src/scripts/update-repos-metadata.ts index f4a02f4..340213e 100644 --- a/src/scripts/update-repos-metadata.ts +++ b/src/scripts/update-repos-metadata.ts @@ -48,7 +48,7 @@ const updateReposMetadata = async () => { // select repo with oldest metadata const repos = await getXataClient() .db.os_repositories.select(["url", "id"]) - .sort("xata.updatedAt", "desc") + .sort("xata.updatedAt", "asc") .getPaginated({ pagination: { size: MAX_REPO_PER_EXECUTION }, });