Oops...
This commit is contained in:
parent
5aa8144ad5
commit
b8cc57b4fb
1
index.js
1
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) {
|
||||
|
|
Loading…
Reference in a new issue