add logs
This commit is contained in:
parent
a355d10cef
commit
6968ceaeb8
1 changed files with 3 additions and 0 deletions
|
|
@ -1452,6 +1452,7 @@ app.get('/api/price', exceptionHandler(async (req, res) => {
|
|||
|
||||
try {
|
||||
const ethInfo = await fetch("https://api.coingecko.com/api/v3/simple/price?ids=ethereum&vs_currencies=usd&include_24hr_change=true").then(res => res.json());
|
||||
console.log('ETH INFO: ', ethInfo);
|
||||
if (ethInfo?.ethereum?.usd !== undefined) {
|
||||
priceData.ethereum = ethInfo;
|
||||
}
|
||||
|
|
@ -1460,6 +1461,8 @@ app.get('/api/price', exceptionHandler(async (req, res) => {
|
|||
console.log('Error: ', error);
|
||||
}
|
||||
|
||||
console.log('ZANO INFO: ', zanoInfo);
|
||||
|
||||
if (zanoInfo?.zano?.usd !== undefined) {
|
||||
priceData.zano = zanoInfo;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue