From fa777c5bc0d1aa3ae9aa8e7abe5bee0fb184e06e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Kr=C3=BDda?= <59953812+karelkryda@users.noreply.github.com> Date: Mon, 30 May 2022 15:32:42 +0200 Subject: [PATCH] Update server/server.js Co-authored-by: Matthew Nickson --- server/server.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/server.js b/server/server.js index d18ef12f5..5c9b6503b 100644 --- a/server/server.js +++ b/server/server.js @@ -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);