Omnibus v1.0.9-beta.026
·
86 commits
to main
since this release
v1.0.9-beta.026 - fix: decouple library scan from HTTP route to resolve background queue failures
The automated LIBRARY_SCAN background job was silently failing after initial setup. The BullMQ worker was using an HTTP GET request to trigger the scan via /api/library?refresh=true, which was being instantly blocked with a 401 Unauthorized by NextAuth since the background queue lacks a user session cookie.
- Extracted the physical disk scanning and database indexing logic into a new native service (src/lib/library-scanner.ts).
- Updated the LIBRARY_SCAN job in src/lib/queue.ts to call the native LibraryScanner.scan() directly, safely bypassing the HTTP security layer.
- Refactored the manual UI refresh endpoint in src/app/api/library/route.ts to consume the new native scanner.