exempt spectators oops...

This commit is contained in:
legop3
2026-05-28 22:35:09 -04:00
parent a3d709236c
commit 9daab1203f
@@ -152,7 +152,7 @@ setInterval(() => {
io.sockets.sockets.forEach((socket) => {
if (!socket?.id) return;
const role = getRole(socket);
if (role === 'admin' || role === 'lockdown') return;
if (role === 'admin' || role === 'lockdown' || role === 'spectator') return;
const connectedAt = Number(socket?.data?.connectedAt || 0);
const lastClientIdentifyAt = Number(socket?.data?.lastClientIdentifyAt || 0);
const referenceTs = lastClientIdentifyAt || connectedAt;