aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/rates.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rates.js b/lib/rates.js
index 30ab0dce..952be031 100644
--- a/lib/rates.js
+++ b/lib/rates.js
@@ -17,7 +17,7 @@ let fetchRates;
if (date !== today) {
try {
- let { data: { rates: fx }} = await axios.get('https://api.exchangerate.host/latest');
+ let { data: { rates: fx }} = await axios.get('https://api.exchangerate.host/latest?base=USD');
fs.writeFileSync("fx", JSON.stringify({ date, fx }));
} catch (e) {
l.error("error fetching rates", e.message);