This commit is contained in:
Rory& 2025-09-20 20:04:40 +02:00
parent 5aa8144ad5
commit b8cc57b4fb

View file

@ -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) {