diff options
| author | Adam Soltys <[email protected]> | 2023-12-19 14:37:18 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-12-20 14:39:08 -0800 |
| commit | b67ca07bac3a0cb78f9b3c19a783c3253f06c29f (patch) | |
| tree | 1664d33bd1c514d016a7a1983af257197d4e5ac7 /lib/rates.js | |
| parent | 337ca8c555f188d64c9f065972d443377adf042f (diff) | |
| download | coinos-server-b67ca07bac3a0cb78f9b3c19a783c3253f06c29f.tar.gz coinos-server-b67ca07bac3a0cb78f9b3c19a783c3253f06c29f.zip | |
biome
Diffstat (limited to 'lib/rates.js')
| -rw-r--r-- | lib/rates.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rates.js b/lib/rates.js index d1cbb92b..1172d202 100644 --- a/lib/rates.js +++ b/lib/rates.js @@ -49,12 +49,12 @@ export let getRates = async () => { date = Date.now(); try { let r = await got( - `http://data.fixer.io/api/latest?access_key=${config.fixer}` + `http://data.fixer.io/api/latest?access_key=${config.fixer}`, ).json(); let { rates: fx } = r; - let USD = fx['USD']; + let USD = fx["USD"]; - Object.keys(fx).map(k => { + Object.keys(fx).map((k) => { fx[k] = fx[k] / USD; }); |
