Skip to content

Commit 0a6eee5

Browse files
committed
fix: resolve duplicate declarations in github.ts
1 parent 94062cd commit 0a6eee5

2 files changed

Lines changed: 31 additions & 22 deletions

File tree

lib/github.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -707,17 +707,6 @@ export async function getOrgDashboardData(orgName: string, options: FetchOptions
707707
throw new Error('This endpoint is strictly for organizations.');
708708
if (membersOrError instanceof Error) throw membersOrError;
709709

710-
const members: string[] = membersOrError;
711-
const calendars = (
712-
await Promise.all(
713-
members.map((m) =>
714-
fetchGitHubContributions(m, options)
715-
.then((d) => d.calendar)
716-
.catch(() => null)
717-
)
718-
)
719-
).filter((c): c is ContributionCalendar => c !== null);
720-
721710
const members = membersOrError;
722711

723712
// Fetch calendars for all members concurrently with capped concurrency to avoid 429s/timeouts

package-lock.json

Lines changed: 31 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)