From 9af7764b46b3efc8d69abbc366509a3aedf6bef2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Czerpak?= Date: Mon, 9 Dec 2024 10:31:35 +0100 Subject: [PATCH] typo --- wtp/locationSelector.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wtp/locationSelector.js b/wtp/locationSelector.js index c02f34d..eb5426d 100644 --- a/wtp/locationSelector.js +++ b/wtp/locationSelector.js @@ -11,9 +11,9 @@ class LocationSelector { constructor() { if (!LocationSelector.instance) { this.cachedAllLocations = []; - this.location = config.get('locationSelector.locationSelector.defaultLocation'); + this.location = config.get('wtp.locationSelector.defaultLocation'); this.lastUpdated = null; - this.mutex = withTimeout(new Mutex(), config.get('locationSelector.locationSelector.updateTimeout') * 1000); + this.mutex = withTimeout(new Mutex(), config.get('wtp.locationSelector.updateTimeout') * 1000); LocationSelector.instance = this; } return LocationSelector.instance; @@ -21,7 +21,7 @@ class LocationSelector { isExpired() { const now = Date.now(); - return (!this.lastUpdated || (now - this.lastUpdated) > config.get('locationSelector.locationSelector.cacheTtl') * 1000); + return (!this.lastUpdated || (now - this.lastUpdated) > config.get('wtp.locationSelector.cacheTtl') * 1000); } async fetchLocations() {