fix: FINNALY FIXED AND COMPILABLE
This commit is contained in:
@@ -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 = `
|
||||
|
||||
Reference in New Issue
Block a user