openreader/src/app/api/documents
Richard R 523774f549 refactor(data): unify document mutation locking and transaction handling
Replace mutation-lock with document-lock to centralize document mutation
serialization and database transaction management. Introduce runInDbTransaction
utility to abstract SQLite/Postgres transaction differences. Update document
deletion, user data cleanup, and rate limiter logic to delegate transaction
handling and locking to shared helpers. Remove dialect-specific branching and
inline transaction logic for improved maintainability and testability.

BREAKING CHANGE: withDocumentMutationLock is removed in favor of withDocumentLock and runInDbTransaction
2026-06-06 20:30:41 -06:00
..
[id] refactor(pdf-parse): extract encodeParserVersion utility and strengthen artifact readiness 2026-06-04 20:46:02 -06:00
blob refactor(data): unify document mutation locking and transaction handling 2026-06-06 20:30:41 -06:00
library refactor: roll out phase 7 server error contract 2026-05-27 07:24:07 -06:00
route.ts refactor(data): improve error handling and rollback for document and TTS segment operations 2026-06-06 20:03:34 -06:00