fix: adds exchange rates api key
This commit is contained in:
1 parent
711f97f745
commit
8eec38af71
1 file changed
+1
-1
@@ -49,7 +49,7 @@ class SegmentService extends BaseService {
|
|||||||
|
|
||||||
const exchangeRate = await axios
|
const exchangeRate = await axios
|
||||||
.get(
|
.get(
|
||||||
`https://api.exchangeratesapi.io/${date}?symbols=${fromCurrency}&base=${toCurrency}`
|
`https://api.exchangeratesapi.io/${date}?symbols=${fromCurrency}&base=${toCurrency}&access_key=${this.options_.exchange_rates_api_key}`
|
||||||
)
|
)
|
||||||
.then(({ data }) => {
|
.then(({ data }) => {
|
||||||
return data.rates[fromCurrency]
|
return data.rates[fromCurrency]
|
||||||
|
|||||||
Reference in new issue
Block a user