From 9264b9d2811c38c8a91efa4378427627d13c3e2a Mon Sep 17 00:00:00 2001 From: si458 Date: Tue, 23 Jul 2024 15:58:13 +0100 Subject: [PATCH] fix autoRemoveInactiveDevices is 1 #6268 Signed-off-by: si458 --- db.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db.js b/db.js index c3d6f315..d28ba1d5 100644 --- a/db.js +++ b/db.js @@ -136,7 +136,7 @@ module.exports.CreateDB = function (parent, func) { for (var i in parent.config.domains) { if (typeof parent.config.domains[i].autoremoveinactivedevices == 'number') { var v = parent.config.domains[i].autoremoveinactivedevices; - if ((v > 1) && (v <= 2000)) { + if ((v => 1) && (v <= 2000)) { if (v < minRemoveInactiveDevice) { minRemoveInactiveDevice = v; } removeInactiveDevicesPerDomain[i] = v; minRemoveInactiveDevicesPerDomain[i] = v; @@ -148,7 +148,7 @@ module.exports.CreateDB = function (parent, func) { for (var i in parent.webserver.meshes) { if (typeof parent.webserver.meshes[i].expireDevs == 'number') { var v = parent.webserver.meshes[i].expireDevs; - if ((v > 1) && (v <= 2000)) { + if ((v => 1) && (v <= 2000)) { if (v < minRemoveInactiveDevice) { minRemoveInactiveDevice = v; } if ((minRemoveInactiveDevicesPerDomain[parent.webserver.meshes[i].domain] == null) || (minRemoveInactiveDevicesPerDomain[parent.webserver.meshes[i].domain] > v)) { minRemoveInactiveDevicesPerDomain[parent.webserver.meshes[i].domain] = v;