mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-13 12:51:37 +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> |
||
|---|---|---|
| .. | ||
| ApiKeyController.js | ||
| AuthorController.js | ||
| BackupController.js | ||
| CacheController.js | ||
| CollectionController.js | ||
| CustomMetadataProviderController.js | ||
| EmailController.js | ||
| FileSystemController.js | ||
| LibraryController.js | ||
| LibraryItemController.js | ||
| MeController.js | ||
| MiscController.js | ||
| NotificationController.js | ||
| PlaylistController.js | ||
| PodcastController.js | ||
| RSSFeedController.js | ||
| SearchController.js | ||
| SeriesController.js | ||
| SessionController.js | ||
| ShareController.js | ||
| StatsController.js | ||
| ToolsController.js | ||
| UserController.js | ||