fix autoRemoveInactiveDevices again #6268
Signed-off-by: si458 <simonsmith5521@gmail.com>
si458 committed
Jul 23, 2024 at 17:28 UTC
7e504a28e6e4e56905ab310daa901dae62dadbef
1 file changed
+2
-2
db.js
+2
-2
@@ -136,7 +136,7 @@ module.exports.CreateDB = function (parent, func) {
136
for (var i in parent.config.domains) {
137
if (typeof parent.config.domains[i].autoremoveinactivedevices == 'number') {
138
var v = parent.config.domains[i].autoremoveinactivedevices;
139
- if ((v => 1) && (v <= 2000)) {
139
+ if ((v >= 1) && (v <= 2000)) {
140
if (v < minRemoveInactiveDevice) { minRemoveInactiveDevice = v; }
141
removeInactiveDevicesPerDomain[i] = v;
142
minRemoveInactiveDevicesPerDomain[i] = v;
@@ -148,7 +148,7 @@ module.exports.CreateDB = function (parent, func) {
148
for (var i in parent.webserver.meshes) {
149
if (typeof parent.webserver.meshes[i].expireDevs == 'number') {
150
var v = parent.webserver.meshes[i].expireDevs;
151
- if ((v => 1) && (v <= 2000)) {
151
+ if ((v >= 1) && (v <= 2000)) {
152
if (v < minRemoveInactiveDevice) { minRemoveInactiveDevice = v; }
153
if ((minRemoveInactiveDevicesPerDomain[parent.webserver.meshes[i].domain] == null) || (minRemoveInactiveDevicesPerDomain[parent.webserver.meshes[i].domain] > v)) {
154
minRemoveInactiveDevicesPerDomain[parent.webserver.meshes[i].domain] = v;