Files
warpbox-dev/backend/libs/middleware/bans_test.go
Daniel Legt 4eacb4cde2
All checks were successful
Build and Publish Docker Image / deploy (push) Successful in 1m42s
fix(handlers): bypass box creation limits for batched uploads
Update `createOrAppendBox` to accept the upload policy and admin status, allowing policy enforcement to be handled during the box creation/append decision process. This ensures that appending files to an existing batch does not incorrectly trigger daily or active box creation limits, as no new box is being created.

Also, add unit tests to verify that batched uploads successfully bypass both daily and active box creation caps.
2026-06-01 00:20:18 +03:00

3.8 KiB