fix bad geography types for geocoder providers
This commit is contained in:
parent
cdf413593b
commit
d4ce7b4af1
|
@ -12,8 +12,8 @@ export interface GeographyConfig extends Config {
|
||||||
geocoderConsolidate: boolean;
|
geocoderConsolidate: boolean;
|
||||||
geocoderProximity: number;
|
geocoderProximity: number;
|
||||||
geocoderPopulationPrioritizerCoef: number;
|
geocoderPopulationPrioritizerCoef: number;
|
||||||
geocoderProviders: number[];
|
geocoderProviders: string[];
|
||||||
geocoderProvidersFallback: string;
|
geocoderProvidersFallback: string[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export default registerAs('geography', () => ({
|
export default registerAs('geography', () => ({
|
||||||
|
@ -49,5 +49,7 @@ export default registerAs('geography', () => ({
|
||||||
geocoderProviders: process.env.GEOCODER_PROVIDERS
|
geocoderProviders: process.env.GEOCODER_PROVIDERS
|
||||||
? process.env.GEOCODER_PROVIDERS?.split(',')
|
? process.env.GEOCODER_PROVIDERS?.split(',')
|
||||||
: ['ADDOK,PELIAS_SEARCH,PELIAS_AUTOCOMPLETE'],
|
: ['ADDOK,PELIAS_SEARCH,PELIAS_AUTOCOMPLETE'],
|
||||||
geocoderProvidersFallback: process.env.GEOCODER_PROVIDERS_FALLBACK ?? 'GMAPS',
|
geocoderProvidersFallback: process.env.GEOCODER_PROVIDERS_FALLBACK
|
||||||
|
? process.env.GEOCODER_PROVIDERS_FALLBACK?.split(',')
|
||||||
|
: ['GMAPS'],
|
||||||
}));
|
}));
|
||||||
|
|
Loading…
Reference in New Issue