mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-29 09:39:04 -04:00
store ignoreTls and upsideDown into db
This commit is contained in:
parent
17b58eac9a
commit
60aa67892d
3 changed files with 37 additions and 29 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue