Skip to content

Commit

Permalink
fix(geocoder-cache): add geocoder-cache enableCache
Browse files Browse the repository at this point in the history
* feat(ci): add npm

Co-authored-by: Vigneron GAETAN <[email protected]>

* fix(ci): repository

* fix(geocoder-cache): add geocoder-cache enableCache

---------

Co-authored-by: Vigneron GAETAN <[email protected]>
  • Loading branch information
gaetanDRE and Vigneron GAETAN authored Dec 7, 2023
1 parent 48bbe06 commit 742963a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/Here/Geocoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class HereGeocoder extends ProviderGeocoder {

let response = {};

if (this.config.cache) {
if (this.config.cacheEnable) {
if(!this.config.cacheUrl || !this.config.cacheKey) {
throw new Error("Missing parameter cacheUrl || cacheKey");
}
Expand Down Expand Up @@ -263,7 +263,7 @@ class HereGeocoder extends ProviderGeocoder {
}

let response = {};
if (this.config.cache) {
if (this.config.cacheEnable) {
if(!this.config.cacheUrl || !this.config.cacheKey) {
throw new Error("Missing parameter cacheUrl || cacheKey");
}
Expand Down

0 comments on commit 742963a

Please sign in to comment.