Fix Logout time unable
This commit is contained in:
@@ -48,7 +48,7 @@ export const handleConnectDispatch =
|
||||
const connectedDispatcherEntry = await prisma.connectedDispatcher.create({
|
||||
data: {
|
||||
publicUser: getPublicUser(user) as any,
|
||||
esimatedLogoutTime: logoffTime,
|
||||
esimatedLogoutTime: logoffTime.length > 0 ? logoffTime : null,
|
||||
lastHeartbeat: new Date().toISOString(),
|
||||
userId: user.id,
|
||||
zone: selectedZone,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user