Modified old pings cleanup config, ip as primary key in player records table

This commit is contained in:
mjezek
2022-10-29 18:51:14 +02:00
parent 37a1579b37
commit 4f81041e97
3 changed files with 18 additions and 12 deletions

View File

@ -23,7 +23,7 @@ class App {
this.database.ensureIndexes(() => {
this.database.loadGraphPoints(config.graphDuration, () => {
this.database.loadRecords(() => {
if (config.deleteOldPings) {
if (config.oldPingsCleanup && config.oldPingsCleanup.enabled) {
this.database.initOldPingsDelete(callback)
} else {
callback()