mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-05-31 02:42:34 +02:00
Fix autologin
This commit is contained in:
parent
e34a8e2e4a
commit
6471a4233a
1 changed files with 3 additions and 3 deletions
|
@ -593,15 +593,15 @@ async function sendNotificationList(socket) {
|
|||
}
|
||||
|
||||
async function afterLogin(socket, user) {
|
||||
socket.userID = user.id;
|
||||
socket.join(user.id)
|
||||
socket.userID = 0;
|
||||
socket.join(0)
|
||||
|
||||
let monitorList = await sendMonitorList(socket)
|
||||
|
||||
for (let monitorID in monitorList) {
|
||||
sendHeartbeatList(socket, monitorID);
|
||||
sendImportantHeartbeatList(socket, monitorID);
|
||||
Monitor.sendStats(io, monitorID, user.id)
|
||||
Monitor.sendStats(io, monitorID, 0)
|
||||
}
|
||||
|
||||
sendNotificationList(socket)
|
||||
|
|
Loading…
Add table
Reference in a new issue