mirror of
https://github.com/Routstr/routstrd.git
synced 2026-08-09 11:54:38 +00:00
The daemon's /usage endpoint returns { output: [...] } where output IS
the entries array directly, not an object with entries/totalEntries/etc.
Both the CLI usage command and TUI monitor expected the wrong shape,
causing entries.reduce to fail with 'is not a function'.
- Fix fetchUsage() to parse the array response correctly
- Fix CLI usage command to handle the array response
- Add defensive check in getTotals() for undefined/non-array input