Move stuff
This commit is contained in:
parent
fb866169e8
commit
0da00e5efb
7
index.js
7
index.js
|
@ -55,11 +55,7 @@ async function getPreviousDayData() {
|
||||||
recordForToday = res[1]
|
recordForToday = res[1]
|
||||||
monthlyTotal = res[2]
|
monthlyTotal = res[2]
|
||||||
totalCalls = res[3]
|
totalCalls = res[3]
|
||||||
});
|
connection.end();
|
||||||
|
|
||||||
await connection.end();
|
|
||||||
console.log(callsMade)
|
|
||||||
console.log(recordForToday)
|
|
||||||
return {
|
return {
|
||||||
"Calls Made": callsMade[0].call_count,
|
"Calls Made": callsMade[0].call_count,
|
||||||
"Record for Today of the Year": recordForToday[0].call_count,
|
"Record for Today of the Year": recordForToday[0].call_count,
|
||||||
|
@ -68,6 +64,7 @@ async function getPreviousDayData() {
|
||||||
"System Uptime": getSystemUptime(),
|
"System Uptime": getSystemUptime(),
|
||||||
"All Time Record": null, // Placeholder
|
"All Time Record": null, // Placeholder
|
||||||
};
|
};
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function getSystemUptime() {
|
function getSystemUptime() {
|
||||||
|
|
Loading…
Reference in a new issue