Skip to content

Commit 9af7764

Browse files
typo
1 parent 82c9d78 commit 9af7764

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

wtp/locationSelector.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ class LocationSelector {
1111
constructor() {
1212
if (!LocationSelector.instance) {
1313
this.cachedAllLocations = [];
14-
this.location = config.get('locationSelector.locationSelector.defaultLocation');
14+
this.location = config.get('wtp.locationSelector.defaultLocation');
1515
this.lastUpdated = null;
16-
this.mutex = withTimeout(new Mutex(), config.get('locationSelector.locationSelector.updateTimeout') * 1000);
16+
this.mutex = withTimeout(new Mutex(), config.get('wtp.locationSelector.updateTimeout') * 1000);
1717
LocationSelector.instance = this;
1818
}
1919
return LocationSelector.instance;
2020
}
2121

2222
isExpired() {
2323
const now = Date.now();
24-
return (!this.lastUpdated || (now - this.lastUpdated) > config.get('locationSelector.locationSelector.cacheTtl') * 1000);
24+
return (!this.lastUpdated || (now - this.lastUpdated) > config.get('wtp.locationSelector.cacheTtl') * 1000);
2525
}
2626

2727
async fetchLocations() {

0 commit comments

Comments
 (0)