mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-29 17:49:05 -04:00
Fix: Fix tag removal, reuse and validation
This commit is contained in:
parent
fcbeed55bf
commit
a0e4e96160
2 changed files with 61 additions and 56 deletions
|
@ -752,13 +752,14 @@ let indexHTML = fs.readFileSync("./dist/index.html").toString();
|
|||
}
|
||||
});
|
||||
|
||||
socket.on("deleteMonitorTag", async (tagID, monitorID, callback) => {
|
||||
socket.on("deleteMonitorTag", async (tagID, monitorID, value, callback) => {
|
||||
try {
|
||||
checkLogin(socket)
|
||||
|
||||
await R.exec("DELETE FROM monitor_tag WHERE tag_id = ? AND monitor_id = ?", [
|
||||
await R.exec("DELETE FROM monitor_tag WHERE tag_id = ? AND monitor_id = ? AND value = ?", [
|
||||
tagID,
|
||||
monitorID,
|
||||
value,
|
||||
])
|
||||
|
||||
// Cleanup unused Tags
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue