audiobookshelf/server/routers
Kevin Gatera 1914b9d7e7
Fix Postgres stats key mapping
Before: the optimized Postgres stats query could aggregate 2152 sessions yet still return totalTime=0, items=0, and empty day buckets because the raw rows exposed lowercase keys instead of the camelCase fields the stats helper expected.\n\nAfter: the stats helper accepts both camelCase model fields and lowercase/raw Postgres fields, restoring totals, item aggregation, and day buckets without giving up the faster raw query path. A validation query against the same account now aggregates about 6.7M seconds across 193 items and 630 active days.
2026-08-02 22:35:01 -04:00
..
ApiRouter.js Fix Postgres stats key mapping 2026-08-02 22:35:01 -04:00
HlsRouter.js Update:HLS router request validation, smooth out transcode reset logic 2023-10-14 12:50:48 -05:00
PublicRouter.js Add new api endpoint for direct playing audio files using session id #4259 2025-05-05 17:00:43 -05:00