From b8cc57b4fb57468b0172c7d1f9a3c15de92a7305 Mon Sep 17 00:00:00 2001 From: Rory& Date: Sat, 20 Sep 2025 20:04:40 +0200 Subject: [PATCH] Oops... --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index f11fb56..abb306a 100644 --- a/index.js +++ b/index.js @@ -105,6 +105,7 @@ function updateRecords(callStats, records) { // Update monthly totals if (!records.monthlyTotals) records.monthlyTotals = {}; + if (!records.monthlyTotals[yesterday.getFullYear().toString()]) records.monthlyTotals[yesterday.getFullYear().toString()] = {}; records.monthlyTotals[yesterday.getFullYear().toString()][yesterday.getMonth().toString()] = callStats.totalCallsThisMonth; if (isNewRecord) {