mirror of
https://github.com/Expand-sys/ccashfrontend
synced 2025-12-17 15:12:14 +11:00
un reversed the logs
This commit is contained in:
parent
107f97eb67
commit
a380f301b0
1 changed files with 3 additions and 5 deletions
8
index.js
8
index.js
|
|
@ -192,7 +192,6 @@ app.get("/BankF", ensureAuthenticated, async function (req, res) {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
}
|
}
|
||||||
let logsent;
|
let logsent;
|
||||||
let logrec;
|
|
||||||
console.log("start " + Date.now());
|
console.log("start " + Date.now());
|
||||||
try {
|
try {
|
||||||
logsent = await got.post(
|
logsent = await got.post(
|
||||||
|
|
@ -209,8 +208,9 @@ app.get("/BankF", ensureAuthenticated, async function (req, res) {
|
||||||
}
|
}
|
||||||
console.log("query finished " + Date.now());
|
console.log("query finished " + Date.now());
|
||||||
logsent = logsent.body.value;
|
logsent = logsent.body.value;
|
||||||
logrec = logsent;
|
let logrec = logsent;
|
||||||
let graphlog = logsent.reverse();
|
let graphlog = logsent;
|
||||||
|
graphlog = graphlog.reverse();
|
||||||
console.log(graphlog);
|
console.log(graphlog);
|
||||||
let graphdata = '["transaction", "balance"]';
|
let graphdata = '["transaction", "balance"]';
|
||||||
let currentbal = balance.value;
|
let currentbal = balance.value;
|
||||||
|
|
@ -223,8 +223,6 @@ app.get("/BankF", ensureAuthenticated, async function (req, res) {
|
||||||
graphdata = graphdata + ", [" + parseInt(i) + "," + currentbal + "]";
|
graphdata = graphdata + ", [" + parseInt(i) + "," + currentbal + "]";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(graphdata);
|
|
||||||
if (logsent == 1 || logsent == -1 || logsent == null) {
|
if (logsent == 1 || logsent == -1 || logsent == null) {
|
||||||
logsent = undefined;
|
logsent = undefined;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue