From 40b0f66cf4fc2741f69816251faee0b863c1863a Mon Sep 17 00:00:00 2001 From: Ivan Date: Mon, 18 Sep 2023 05:03:16 +0300 Subject: [PATCH] report admin fix --- server.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server.js b/server.js index fa16bb5..6f993fa 100644 --- a/server.js +++ b/server.js @@ -1496,7 +1496,7 @@ app.get('/reports/:id', async (req, res) => { actualSpeed = alarm.speed } - if (serialValues.includes(alarm.serial)) { + if (serialValues.includes(alarm.serial) || templateData.isAdmin) { templateData.Type = type; templateData.Speed = actualSpeed; @@ -1922,7 +1922,7 @@ async function devices(req, res) { GroupsList: groupsResult.rows, }; - console.log(templateData); + // console.log(templateData); const source = fs.readFileSync("static/templates/devices/index.html", "utf8"); const template = handlebars.compile(source); @@ -2966,7 +2966,7 @@ app.post("/add-user", async (req, res) => { } const { name, surname, email, phone, password } = req.body; - console.log(name, surname, email, phone, password) + // console.log(name, surname, email, phone, password) try {