backup: before bulk replacement

This commit is contained in:
2026-05-19 19:49:01 +01:00
parent d7bec1ae78
commit 27806f438f
11 changed files with 1044 additions and 955 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ export async function GET() {
const rows = await query(sql);
const drivers = rows.map((row: any) => ({
const drivers = rows.map((row: unknown) => ({
driver_guid: row.driver_guid,
driver_name: row.driver_name,
driver_team: row.driver_team,
+1 -1
View File
@@ -8,7 +8,7 @@ export const dynamic = 'force-dynamic';
export const runtime = 'nodejs';
// Cache for driver ranks (refreshed periodically)
let rankCache: Map<string, { rank: number, rating: number }> = new Map();
const rankCache: Map<string, { rank: number, rating: number }> = new Map();
let lastRankUpdate = 0;
const RANK_CACHE_TTL = 60000; // 1 minute