fix: temporary disable multi page star fetch

This commit is contained in:
rickstaa 2022-10-05 00:47:14 +02:00
parent 94d0978d2b
commit aae83cb22e
No known key found for this signature in database
GPG Key ID: 0BD7401D30D23E53

View File

@ -152,9 +152,10 @@ const totalStarsFetcher = async (username, repoToHide) => {
(node) => node.stargazers.totalCount !== 0,
);
nodes.push(...nodesWithStars);
hasNextPage =
allNodes.length === nodesWithStars.length &&
res.data.data.user.repositories.pageInfo.hasNextPage;
// hasNextPage =
// allNodes.length === nodesWithStars.length &&
// res.data.data.user.repositories.pageInfo.hasNextPage;
hasNextPage = false // NOTE: Temporarily disable fetching of multiple pages.
endCursor = res.data.data.user.repositories.pageInfo.endCursor;
}