From e0dace616556c0093795b40ec14c8f108e59a6ec Mon Sep 17 00:00:00 2001 From: Alexander Borg Date: Sun, 7 Sep 2025 16:26:19 +0200 Subject: [PATCH] Fix jwt-token --- server/routes/detectors.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/routes/detectors.js b/server/routes/detectors.js index c030451..a2ea743 100644 --- a/server/routes/detectors.js +++ b/server/routes/detectors.js @@ -239,7 +239,8 @@ async function handleDetection(req, res) { geo_lat: detectionData.geo_lat || 0, geo_lon: detectionData.geo_lon || 0, last_heartbeat: new Date(), - is_approved: false + is_approved: false, + is_active: false }); // Emit notification for new device requiring approval