mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-13 04:41:36 +00:00
PATCH /api/series/:id with a name that already exists in the same library causes an unhandled SequelizeUniqueConstraintError that crashes the server process (exit code 1). Wrap the save() call in try/catch and return 400. The included test "should return 400 when renaming to a name that already exists in the same library" also serves as a minimal reproducer for the bug: run it against the unpatched SeriesController and it throws the unhandled SequelizeUniqueConstraintError (the same error seen in production as a fatal unhandled rejection at SeriesController.js:83). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| server | ||