Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app/api/local-coding/sync/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ export async function GET(req: NextRequest) {

const { searchParams } = new URL(req.url);
const rawDays = parseInt(searchParams.get("days") || "30", 10);
const days = validateDays(isNaN(rawDays) ? DEFAULT_DAYS : rawDays);
const days = validateDays(Number.isNaN(rawDays) ? DEFAULT_DAYS : rawDays);
const fromDate = new Date();
fromDate.setDate(fromDate.getDate() - days);
const fromDateStr = fromDate.toISOString().slice(0, 10);
Expand Down
2 changes: 1 addition & 1 deletion src/app/api/metrics/languages/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
if (!searchRes.ok) throw new Error("API Error");

const raw = await searchRes.json();
const repoNames = Array.from(new Set<string>(raw.items.map((i: any) => i.repository.full_name)));
const repoNames = Array.from(new Set<string>(raw.(items ?? []).map((i: any) => i.repository.full_name)));

Check failure on line 68 in src/app/api/metrics/languages/route.ts

View workflow job for this annotation

GitHub Actions / Type check

Identifier expected.
const topRepoNames = repoNames.slice(0, 20);
const langTotals: Record<string, number> = {};
const failedRepos: Array<{ name: string; statusCode?: number; error: string }> = [];
Expand Down
3 changes: 2 additions & 1 deletion src/app/dashboard/repo-comparison/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,4 +203,5 @@
)}
</div>
);
}
}
.catch(err => console.error("Promise.all failed:", err));

Check failure on line 207 in src/app/dashboard/repo-comparison/page.tsx

View workflow job for this annotation

GitHub Actions / Type check

';' expected.

Check failure on line 207 in src/app/dashboard/repo-comparison/page.tsx

View workflow job for this annotation

GitHub Actions / Type check

')' expected.

Check failure on line 207 in src/app/dashboard/repo-comparison/page.tsx

View workflow job for this annotation

GitHub Actions / Type check

'try' expected.

Check failure on line 207 in src/app/dashboard/repo-comparison/page.tsx

View workflow job for this annotation

GitHub Actions / Type check

Declaration or statement expected.
Loading