mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-30 18:24:03 +00:00
Update server/server.js
Co-authored-by: Matthew Nickson <mnickson@sidingsmedia.com>
This commit is contained in:
parent
6d0683b055
commit
fa777c5bc0
1 changed files with 5 additions and 0 deletions
|
@ -1759,6 +1759,11 @@ async function checkOwner(userID, monitorID) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Send maintenance list to client
|
||||||
|
* @param {Socket} socket Socket.io instance to send to
|
||||||
|
* @returns {Object}
|
||||||
|
*/
|
||||||
async function sendMaintenanceList(socket) {
|
async function sendMaintenanceList(socket) {
|
||||||
let list = await getMaintenanceJSONList(socket.userID);
|
let list = await getMaintenanceJSONList(socket.userID);
|
||||||
io.to(socket.userID).emit("maintenanceList", list);
|
io.to(socket.userID).emit("maintenanceList", list);
|
||||||
|
|
Loading…
Reference in a new issue