mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-10-01 01:25:45 -04:00
fix linting error
This commit is contained in:
parent
cb1b414365
commit
59aea398b7
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user