fix: FINNALY FIXED AND COMPILABLE
This commit is contained in:
+2
-2
@@ -32,7 +32,7 @@ async function getLiveData(): Promise<LiveData[]> {
|
||||
|
||||
// For each server, get connected cars with their positions
|
||||
const liveData = await Promise.all(
|
||||
servers.map(async (server: unknown) => {
|
||||
servers.map(async (server: any) => {
|
||||
const carsSql = `
|
||||
SELECT
|
||||
u.driver_guid,
|
||||
@@ -47,7 +47,7 @@ async function getLiveData(): Promise<LiveData[]> {
|
||||
const cars = await query(carsSql, [server.server_id]);
|
||||
|
||||
// Add mock data for positions (real data will come from telemetry stream)
|
||||
const carsWithPositions = cars.map((car: unknown, index: number) => ({
|
||||
const carsWithPositions = cars.map((car: any, index: number) => ({
|
||||
...car,
|
||||
carID: index,
|
||||
position: index + 1,
|
||||
|
||||
Reference in New Issue
Block a user