Fix Logout time unable

This commit is contained in:
PxlLoewe
2025-07-19 13:07:23 -07:00
parent 41a3086d82
commit c10d7ef91a
4 changed files with 18 additions and 20 deletions

View File

@@ -77,7 +77,7 @@ export const handleConnectPilot =
const connectedAircraftEntry = await prisma.connectedAircraft.create({
data: {
publicUser: getPublicUser(user) as any,
esimatedLogoutTime: logoffTime,
esimatedLogoutTime: logoffTime.length > 0 ? logoffTime : null,
userId: userId,
stationId: parseInt(stationId),
lastHeartbeat: debug ? nowPlus2h.toISOString() : undefined,