mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-25 22:55:52 -05:00
Added removeInactiveDevices() to maintenance tasks.
This commit is contained in:
parent
2281a61e30
commit
994834f57c
1
db.js
1
db.js
@ -110,6 +110,7 @@ module.exports.CreateDB = function (parent, func) {
|
||||
obj.powerfile.remove({ time: { '$lt': new Date(Date.now() - (expirePowerEventsSeconds * 1000)) } }, { multi: true }); // Force delete older events
|
||||
obj.serverstatsfile.remove({ time: { '$lt': new Date(Date.now() - (expireServerStatsSeconds * 1000)) } }, { multi: true }); // Force delete older events
|
||||
}
|
||||
obj.removeInactiveDevices();
|
||||
}
|
||||
|
||||
// Remove inactive devices
|
||||
|
Loading…
Reference in New Issue
Block a user