aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-01-12 12:18:29 -0800
committerAdam Soltys <[email protected]>2024-01-12 12:18:29 -0800
commit2444b62a4d254121bab0314972e260d839a18993 (patch)
tree8227fa51df5f616a842f21758807e89ac4b22d42 /lib
parent7a84d2555ffabbe29b23cf6e5035b6a4be8b9eb6 (diff)
downloadcoinos-server-2444b62a4d254121bab0314972e260d839a18993.tar.gz
coinos-server-2444b62a4d254121bab0314972e260d839a18993.zip
rm fx logs
Diffstat (limited to 'lib')
-rw-r--r--lib/rates.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/rates.js b/lib/rates.js
index 518261f4..1172d202 100644
--- a/lib/rates.js
+++ b/lib/rates.js
@@ -48,13 +48,11 @@ export let getRates = async () => {
if (Date.now() - date > 24 * 60 * 60 * 1000) {
date = Date.now();
try {
- console.log("getting rates")
let r = await got(
`http://data.fixer.io/api/latest?access_key=${config.fixer}`,
).json();
let { rates: fx } = r;
let USD = fx["USD"];
- console.log("fx", fx);
Object.keys(fx).map((k) => {
fx[k] = fx[k] / USD;