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
3 changes: 2 additions & 1 deletion e2e/auth.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,5 @@
// Features section or a recognised feature keyword must be present.
const features = page.locator("#features");
await expect(features).toBeVisible();
});
});
.catch(err => console.error("Promise.all failed:", err));

Check failure on line 78 in e2e/auth.spec.ts

View workflow job for this annotation

GitHub Actions / Type check

';' expected.

Check failure on line 78 in e2e/auth.spec.ts

View workflow job for this annotation

GitHub Actions / Type check

')' expected.

Check failure on line 78 in e2e/auth.spec.ts

View workflow job for this annotation

GitHub Actions / Type check

'try' expected.

Check failure on line 78 in e2e/auth.spec.ts

View workflow job for this annotation

GitHub Actions / Type check

Declaration or statement expected.
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 @@ -278,7 +278,7 @@ export async function GET(req: NextRequest) {
}

const { searchParams } = new URL(req.url);
const rawDays = parseInt(searchParams.get("days") || "30", 10);
const rawDays = parseInt(searchParams.get("days", 10) || "30", 10);
const days = validateDays(isNaN(rawDays) ? DEFAULT_DAYS : rawDays);
const fromDate = new Date();
fromDate.setDate(fromDate.getDate() - days);
Expand Down
3 changes: 2 additions & 1 deletion src/app/api/metrics/devtrack-badges/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,5 @@
);

return Response.json(data);
}
}
.catch(err => console.error("Promise.all failed:", err));

Check failure on line 135 in src/app/api/metrics/devtrack-badges/route.ts

View workflow job for this annotation

GitHub Actions / Type check

';' expected.

Check failure on line 135 in src/app/api/metrics/devtrack-badges/route.ts

View workflow job for this annotation

GitHub Actions / Type check

')' expected.

Check failure on line 135 in src/app/api/metrics/devtrack-badges/route.ts

View workflow job for this annotation

GitHub Actions / Type check

'try' expected.

Check failure on line 135 in src/app/api/metrics/devtrack-badges/route.ts

View workflow job for this annotation

GitHub Actions / Type check

Declaration or statement expected.
2 changes: 1 addition & 1 deletion src/app/api/metrics/repo-health/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export async function GET(req: NextRequest) {
return Response.json({ error: "Unauthorized" }, { status: 401 });
}

const requestedDays = parseInt(req.nextUrl.searchParams.get("days") ?? "30", 10);
const requestedDays = parseInt(req.nextUrl.searchParams.get("days", 10) ?? "30", 10);
// Only allow 7, 30, or 90 day windows — other values default to 30.
const days = requestedDays === 7 || requestedDays === 30 || requestedDays === 90 ? requestedDays : 30;

Expand Down
Loading