fix: adds exchange rates api key
This commit is contained in:
@@ -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