Update server/server.js

Co-authored-by: Matthew Nickson <mnickson@sidingsmedia.com>
pull/1213/head
Karel Krýda 3 years ago committed by GitHub
parent 6d0683b055
commit fa777c5bc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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) {
let list = await getMaintenanceJSONList(socket.userID);
io.to(socket.userID).emit("maintenanceList", list);

Loading…
Cancel
Save