Slave/lifecycle #11

Merged
nobswebdev merged 9 commits from slave/lifecycle into master 2026-10-27 21:12:04 +00:00
Owner
No description provided.
nobswebdev added 9 commits 2026-10-27 21:11:30 +00:00
Add a migration and remove the column from the Upload entity.
Bump count only when ciphertext or decrypted image is ready; 404 paths do not increment. Cover both flows in UploadService tests.
Return 204 when the token hash matches; ignore missing files on unlink so the row is still removed.
Use dayjs to compare expiresAt before reading storage or incrementing view_count.
Move token delete and storage purge off UploadService; enforce expiry and max views on GET without purging until the scheduled cleanup job runs.
Run the column drop after AddUploadTable so TypeORM does not execute ALTER before uploads exists.
Use a conditional UPDATE with parenthesized OR so increment only applies to the target row and fails when the view cap is reached.
nobswebdev merged commit f5024b84d8 into master 2026-10-27 21:12:04 +00:00
nobswebdev deleted branch slave/lifecycle 2026-10-27 21:12:04 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nobswebdev/private_image#11