fix: FINNALY FIXED AND COMPILABLE

This commit is contained in:
2026-06-24 11:37:56 +01:00
parent e9555c9f74
commit 426c1c50a0
13 changed files with 56 additions and 62 deletions
+3 -3
View File
@@ -44,8 +44,8 @@ async function getFilterOptions(): Promise<FilterOptions> {
const cars = await query(carsQuery);
return {
teams: teams.map((t: unknown) => t.driver_team),
carModels: cars.map((c: unknown) => c.car_model)
teams: teams.map((t: any) => t.driver_team),
carModels: cars.map((c: any) => c.car_model)
};
}
@@ -100,7 +100,7 @@ async function getRankings(
// Get total count
const countResult = await query(`SELECT COUNT(*) as count FROM users ${whereClause}`);
const totalCount = countResult[0]?.count || 0;
const totalCount = (countResult[0] as { count: number })?.count || 0;
// Get paginated results
const sql = `