master
Manuel Kasper 2024-11-19 11:44:40 +01:00
rodzic e79f563545
commit f583a0d75d
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -64,7 +64,7 @@ class SotaSpotReceiver {
minSpotId = spot.id;
}
});
if (this.isFullLoad) {
if (isFullLoad) {
this.removeDeletedSpots(minSpotId, currentSpotIds);
this.lastFullLoad = new Date();
}
@ -124,7 +124,7 @@ class SotaSpotReceiver {
while (this.latestSpots.getLength() > 0) {
let minKey = this.latestSpots.getMinKey();
if ((now - this.latestSpots.get(minKey).timeStamp) > config.sotaspots.maxSpotAge) {
console.log('Remove spot ID ' + minKey);
console.log('Spot ID ' + minKey + ' expired');
this.latestSpots.remove(minKey);
} else {
break;