* Public helper: today's YYYY-MM-DD key in Node process local TZ. * Paired with the _getYesterdayKey used inside _resetDailyCounters. * The /statsHistory route must use this rather than new Date() in the * browser — otherwise differing browser/container TZs can shift month * boun
()
| 345 | * - DATA_SAVE_MODE=none: saveAllAccounts returns false and history is not |
| 346 | * persisted. Set DATA_SAVE_MODE=file or redis to enable the feature. |
| 347 | * @private |
| 348 | */ |
| 349 | async _resetDailyCounters() { |
| 350 | // CLI 请求计数(旧逻辑) |
| 351 | const cliAccounts = this.accountTokens.filter(account => account.cli_info) |
| 352 | cliAccounts.forEach(account => { |
no test coverage detected