@riocrypto/common-server 1.0.601 → 1.0.602
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -31,7 +31,6 @@ class FixerClient {
|
|
|
31
31
|
},
|
|
32
32
|
});
|
|
33
33
|
const exchangeRate = fixerResponse.data.rates[to] * 0.9987;
|
|
34
|
-
console.log("Exchange rate of " + from + " to " + to + " is " + exchangeRate);
|
|
35
34
|
cache.set(`fixer/latest?base=${from}&symbols=${to}`, fixerResponse.data);
|
|
36
35
|
return exchangeRate;
|
|
37
36
|
}
|
|
@@ -40,12 +39,6 @@ class FixerClient {
|
|
|
40
39
|
if (!cachedResponse) {
|
|
41
40
|
throw new Error(`Unable to get exchange rate from Fixer for ${from} to ${to}`);
|
|
42
41
|
}
|
|
43
|
-
console.log("Exchange rate of " +
|
|
44
|
-
from +
|
|
45
|
-
" to " +
|
|
46
|
-
to +
|
|
47
|
-
" is " +
|
|
48
|
-
cachedResponse.rates[to] * 0.9987);
|
|
49
42
|
return cachedResponse.rates[to] * 0.9987;
|
|
50
43
|
}
|
|
51
44
|
});
|