mirror of
https://github.com/frappe/books.git
synced 2024-12-23 03:19:01 +00:00
Merge pull request #240 from madisvain/patch-1
Change VATComply API for exchange rates
This commit is contained in:
commit
e281b667b2
@ -14,7 +14,7 @@ export async function getExchangeRate({ fromCurrency, toCurrency, date }) {
|
||||
if (!exchangeRate) {
|
||||
try {
|
||||
let res = await fetch(
|
||||
`https://api.exchangeratesapi.io/${date}?base=${fromCurrency}&symbols=${toCurrency}`
|
||||
`https://api.vatcomply.com/${date}?base=${fromCurrency}&symbols=${toCurrency}`
|
||||
);
|
||||
let data = await res.json();
|
||||
exchangeRate = data.rates[toCurrency];
|
||||
|
Loading…
Reference in New Issue
Block a user