diff --git a/scriptUpdateNode1.js b/scriptUpdateNode1.js index 2c91c8f..c53eb52 100644 --- a/scriptUpdateNode1.js +++ b/scriptUpdateNode1.js @@ -99,12 +99,10 @@ const getEthSum = async (elemsCC, dates) => { let sumCC = 0; for (let key in elemsCC) { sum += elemsCC[key]['conversionPrice']['ETH']; - } - for (let key in elemsCC) { - sumCC += 1; + sumCC +=1; } ret.ccTotal = sumCC; ret.ccTS = sum; ret.dates = dates; return ret; -} \ No newline at end of file +}