mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-09 00:41:07 +08:00
store ignoreTls and upsideDown into db
This commit is contained in:
@@ -197,6 +197,7 @@ let indexHTML = fs.readFileSync("./dist/index.html").toString();
|
||||
// Auth Only API
|
||||
// ***************************
|
||||
|
||||
// Add a new monitor
|
||||
socket.on("add", async (monitor, callback) => {
|
||||
try {
|
||||
checkLogin(socket)
|
||||
@@ -228,6 +229,7 @@ let indexHTML = fs.readFileSync("./dist/index.html").toString();
|
||||
}
|
||||
});
|
||||
|
||||
// Edit a monitor
|
||||
socket.on("editMonitor", async (monitor, callback) => {
|
||||
try {
|
||||
checkLogin(socket)
|
||||
@@ -246,6 +248,8 @@ let indexHTML = fs.readFileSync("./dist/index.html").toString();
|
||||
bean.maxretries = monitor.maxretries;
|
||||
bean.port = monitor.port;
|
||||
bean.keyword = monitor.keyword;
|
||||
bean.ignoreTls = monitor.ignoreTls;
|
||||
bean.upsideDown = monitor.upsideDown;
|
||||
|
||||
await R.store(bean)
|
||||
|
||||
|
Reference in New Issue
Block a user