Skip to content

Commit b79c174

Browse files
authored
Merge branch 'main' into fix/landing-copy-clipboard-error
2 parents e851523 + af30c96 commit b79c174

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lib/github.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,9 +749,12 @@ export async function getOrgDashboardData(orgName: string, options: FetchOptions
749749

750750
const members = membersOrError;
751751

752+
// Limit active members to first 60 to protect shared token rate limit
753+
const activeMembers = members.slice(0, 60);
754+
752755
// Fetch calendars for all members concurrently with capped concurrency to avoid 429s/timeouts
753756
const calendars = (
754-
await runCappedConcurrency(members, 5, (member) =>
757+
await runCappedConcurrency(activeMembers, 5, (member) =>
755758
fetchGitHubContributions(member, options)
756759
.then((data) => data.calendar)
757760
.catch(() => null)

0 commit comments

Comments
 (0)