fix: updated from 9.3.3 to 15
This commit is contained in:
+3
-3
@@ -12,7 +12,7 @@ interface LiveData {
|
||||
server_track: string;
|
||||
server_config: string;
|
||||
connected_players: number;
|
||||
cars: any[];
|
||||
cars: unknown[];
|
||||
}
|
||||
|
||||
async function getLiveData(): Promise<LiveData[]> {
|
||||
@@ -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: any) => {
|
||||
servers.map(async (server: unknown) => {
|
||||
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: any, index: number) => ({
|
||||
const carsWithPositions = cars.map((car: unknown, index: number) => ({
|
||||
...car,
|
||||
carID: index,
|
||||
position: index + 1,
|
||||
|
||||
Reference in New Issue
Block a user