From 29664c0032a9779ce73192616b1b61da540d12fe Mon Sep 17 00:00:00 2001 From: Expand-sys Date: Wed, 11 Jan 2023 10:57:16 +1100 Subject: [PATCH] fuckbees --- index.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/index.js b/index.js index dbd022e..fdb68e7 100644 --- a/index.js +++ b/index.js @@ -196,24 +196,24 @@ fastify.get( }*/ if(log){ log.reverse() - } - for(i = 0; i < log.length; i++){ - - - if(log[i].amount > 0){ - let absol = Math.abs(log[i].amount) - let date = new Date(log[i].time * 1000) - transactionlog.push(`${log[i].counterparty} sent you ${absol} at ${date}`); + + for(i = 0; i < log.length; i++){ + + + if(log[i].amount > 0){ + let absol = Math.abs(log[i].amount) + let date = new Date(log[i].time * 1000) + transactionlog.push(`${log[i].counterparty} sent you ${absol} at ${date}`); - } else { - let date = new Date(log[i].time * 1000) - let absol = Math.abs(log[i].amount) - transactionlog.push(`You sent ${log[i].counterparty} ${absol} at ${date}`); + } else { + let date = new Date(log[i].time * 1000) + let absol = Math.abs(log[i].amount) + transactionlog.push(`You sent ${log[i].counterparty} ${absol} at ${date}`); + } } } - console.log("begin render " + Date.now()); //let maxgraph = balance + 1000;