openreader/src/app/api/documents/blob
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
..
get refactor(documents): centralize owned document deletion and add mutation locking 2026-06-06 18:09:47 -06:00
preview refactor(documents): centralize owned document deletion and add mutation locking 2026-06-06 18:09:47 -06:00
upload refactor(data): unify document mutation locking and transaction handling 2026-06-06 20:30:41 -06:00