StationStatus Toast hinzugefügt #45

This commit is contained in:
PxlLoewe
2025-07-07 01:55:45 -07:00
parent 7682f191c7
commit 9e4a46c595
13 changed files with 170 additions and 140 deletions

View File

@@ -1,7 +0,0 @@
import { ConnectedAircraft } from "@repo/db";
export const checkSimulatorConnected = (a: ConnectedAircraft) => {
if (!a.lastHeartbeat || Date.now() - new Date(a.lastHeartbeat).getTime() > 30_000) return false; // 30 seconds
if (!a.posLat || !a.posLng) return false;
return true;
};