fix: FINNALY FIXED AND COMPILABLE
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
import { query } from '@/lib/db';
|
||||
import { LiveDotIcon } from '@/components/ui/icons';
|
||||
import DashboardClient from '@/components/dashboard/DashboardClient';
|
||||
import { Driver, DriverServerRow } from '@/types/racing';
|
||||
import { DashboardDriver } from '@/components/dashboard/DashboardClient';
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
async function getConnectedDrivers() {
|
||||
@@ -37,7 +37,7 @@ async function getConnectedDrivers() {
|
||||
|
||||
const rows = await query(sql);
|
||||
|
||||
const drivers: Driver[] = rows.map((row: DriverServerRow) => ({
|
||||
const drivers: DashboardDriver[] = rows.map((row: any) => ({
|
||||
driver_guid: row.driver_guid,
|
||||
driver_name: row.driver_name,
|
||||
driver_team: row.driver_team,
|
||||
|
||||
Reference in New Issue
Block a user