diff --git a/index.js b/index.js index e295583..132c8c9 100644 --- a/index.js +++ b/index.js @@ -56,14 +56,16 @@ async function getPreviousDayData() { monthlyTotal = res[2] totalCalls = res[3] connection.end(); - return { + let output = { "Calls Made": callsMade[0].call_count, "Record for Today of the Year": recordForToday[0].call_count, "Monthly Total": monthlyTotal[0].call_count, "Total Calls Ever Placed": totalCalls[0].call_count, "System Uptime": getSystemUptime(), "All Time Record": null, // Placeholder - }; + } + console.log(output) + return output; }); }