fix: adds exchange rates api key

This commit is contained in:
Sebastian Rindom
2021-04-02 12:34:37 +02:00
parent 711f97f745
commit 8eec38af71

View File

@@ -49,7 +49,7 @@ class SegmentService extends BaseService {
const exchangeRate = await axios
.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 }) => {
return data.rates[fromCurrency]