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]
|
||||
monthlyTotal = res[2]
|
||||
totalCalls = res[3]
|
||||
});
|
||||
|
||||
await connection.end();
|
||||
console.log(callsMade)
|
||||
console.log(recordForToday)
|
||||
connection.end();
|
||||
return {
|
||||
"Calls Made": callsMade[0].call_count,
|
||||
"Record for Today of the Year": recordForToday[0].call_count,
|
||||
|
@ -68,6 +64,7 @@ async function getPreviousDayData() {
|
|||
"System Uptime": getSystemUptime(),
|
||||
"All Time Record": null, // Placeholder
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
function getSystemUptime() {
|
||||
|
|
Loading…
Reference in a new issue