mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-09-11 08:55:32 +03:00
fix autoRemoveInactiveDevices again #6268
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
92869ec78b
commit
7e504a28e6
4
db.js
4
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;
|
||||
|
Loading…
Reference in New Issue
Block a user