Update backend/src/services/app-connection/github/github-connection-fns.ts

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
x032205
2025-08-07 20:26:12 -04:00
committed by GitHub
parent b6b9fb6ef5
commit 352ef050c3

View File

@@ -200,7 +200,7 @@ export const makePaginatedGitHubRequest = async <T, R = T[]>(
const linkHeader = parseGitHubLinkHeader(firstResponse.headers.link as string | undefined);
const lastPageUrl = linkHeader.last;
// If there's a last page URL, get it's page number and concurrently fetch every page starting from 2 to last
// If there's a last page URL, get its page number and concurrently fetch every page starting from 2 to last
if (lastPageUrl) {
const lastPageParam = new URL(lastPageUrl).searchParams.get("page");
const totalPages = lastPageParam ? parseInt(lastPageParam, 10) : 1;