fix linting error

This commit is contained in:
vishalsabhaya 2024-09-05 17:21:40 +09:00
parent cb1b414365
commit 59aea398b7
2 changed files with 5 additions and 1 deletions

View File

@ -221,9 +221,11 @@ class UptimeKumaServer {
* Delete Monitor from list * Delete Monitor from list
* @param {Socket} socket Socket to send list on * @param {Socket} socket Socket to send list on
* @param {number} monitorID update or deleted monitor id * @param {number} monitorID update or deleted monitor id
* @returns {number} deletion monitor id
*/ */
async sendDeleteMonitorFromList(socket, monitorID) { async sendDeleteMonitorFromList(socket, monitorID) {
this.io.to(socket.userID).emit("deleteMonitorFromList", monitorID); this.io.to(socket.userID).emit("deleteMonitorFromList", monitorID);
return monitorID;
} }
/** /**

View File

@ -288,9 +288,10 @@ export default {
/** /**
* parse all urls from list. * parse all urls from list.
* @param {object} data Monitor data to modify * @param {object} data Monitor data to modify
* @returns {object} list
*/ */
assignMonitorUrlParser(data) { assignMonitorUrlParser(data) {
Object.entries(data).forEach(([monitorID, monitor]) => { Object.entries(data).forEach(([ monitorID, monitor ]) => {
monitor.getUrl = () => { monitor.getUrl = () => {
try { try {
return new URL(monitor.url); return new URL(monitor.url);
@ -299,6 +300,7 @@ export default {
} }
}; };
}); });
return data;
}, },
/** /**
* update into existing list * update into existing list