mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-10-01 01:25:45 -04:00
depricate inner promise
move inner promise to outer promise
This commit is contained in:
parent
bb499e2aa1
commit
96a1010b30
@ -1648,12 +1648,8 @@ async function afterLogin(socket, user) {
|
||||
|
||||
const monitorPromises = [];
|
||||
for (let monitorID in monitorList.list) {
|
||||
monitorPromises.push(
|
||||
Promise.all([
|
||||
sendHeartbeatList(socket, monitorID),
|
||||
Monitor.sendStats(io, monitorID, user.id)
|
||||
])
|
||||
);
|
||||
monitorPromises.push(sendHeartbeatList(socket, monitorID));
|
||||
monitorPromises.push(Monitor.sendStats(io, monitorID, user.id));
|
||||
}
|
||||
|
||||
await Promise.all(monitorPromises);
|
||||
|
Loading…
Reference in New Issue
Block a user