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

@@ -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,