()
| 58 | // statsHistory: { 'YYYY-MM-DD': { chat:{input,output}, cli:{calls,input,output} } } |
| 59 | // Backward-compat: legacy records without the field — initialize to {} |
| 60 | if (!account.statsHistory || typeof account.statsHistory !== 'object') { |
| 61 | account.statsHistory = {} |
| 62 | } |
| 63 | } |
no test coverage detected