mirror of
https://github.com/hectorqin/reader.git
synced 2026-11-11 21:41:02 +08:00
main.ts registers the routes with a placeholder context and attaches the services afterwards, so the stats route captured ctx.shelf while it was still undefined and every summary failed with "Cannot read properties of undefined (reading 'getMany')". Writes never touched the shelf and were unaffected. The service is now built on first request; a new test builds the app the way main.ts does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>