remove added debug messages

This commit is contained in:
Thomas Spalinger 2024-04-22 22:38:30 +02:00
parent cea0138f61
commit 78fddc7f00
1 changed files with 0 additions and 12 deletions

View File

@ -1043,8 +1043,6 @@ let needSetup = false;
try {
checkLogin(socket);
log.debug("manage", `Add Tag: ${tag} User ID: ${socket.userID}`);
let bean = R.dispense("tag");
bean.name = tag.name;
bean.color = tag.color;
@ -1067,8 +1065,6 @@ let needSetup = false;
try {
checkLogin(socket);
log.debug("manage", `Edit Tag: ${tag} User ID: ${socket.userID}`);
let bean = await R.findOne("tag", " id = ? ", [ tag.id ]);
if (bean == null) {
callback({
@ -1101,8 +1097,6 @@ let needSetup = false;
try {
checkLogin(socket);
log.debug("manage", `Delete Tag: ${tagID} User ID: ${socket.userID}`);
await R.exec("DELETE FROM tag WHERE id = ? ", [ tagID ]);
callback({
@ -1123,8 +1117,6 @@ let needSetup = false;
try {
checkLogin(socket);
log.debug("manage", `Add Monitor(${monitorID}) Tag(${tagID}): ${value} User ID: ${socket.userID}`);
await R.exec("INSERT INTO monitor_tag (tag_id, monitor_id, value) VALUES (?, ?, ?)", [
tagID,
monitorID,
@ -1149,8 +1141,6 @@ let needSetup = false;
try {
checkLogin(socket);
log.debug("manage", `Edit Monitor(${monitorID}) Tag(${tagID}): ${value} User ID: ${socket.userID}`);
await R.exec("UPDATE monitor_tag SET value = ? WHERE tag_id = ? AND monitor_id = ?", [
value,
tagID,
@ -1175,8 +1165,6 @@ let needSetup = false;
try {
checkLogin(socket);
log.debug("manage", `Delete Monitor(${monitorID}) Tag(${tagID}): ${value} User ID: ${socket.userID}`);
await R.exec("DELETE FROM monitor_tag WHERE tag_id = ? AND monitor_id = ? AND value = ?", [
tagID,
monitorID,