mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-22 02:18:54 +01:00
Fix:Server crash when uploading or adding new podcast #3353
This commit is contained in:
@@ -44,7 +44,7 @@ class MiscController {
|
||||
const files = Object.values(req.files)
|
||||
const { title, author, series, folder: folderId, library: libraryId } = req.body
|
||||
|
||||
const library = await Database.libraryModel.findByPk(libraryId)
|
||||
const library = await Database.libraryModel.findByIdWithFolders(libraryId)
|
||||
if (!library) {
|
||||
return res.status(404).send(`Library not found with id ${libraryId}`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user