Fix:Server crash when uploading or adding new podcast #3353

This commit is contained in:
advplyr committed 2024-09-01 07:35:05 -05:00
1 parent 5b22d7430a
commit fc276b330a
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -38,7 +38,7 @@ class PodcastController {
}
const payload = req.body
const library = await Database.libraryModel.findByPk(payload.libraryId)
const library = await Database.libraryModel.findByIdWithFolders(payload.libraryId)
if (!library) {
Logger.error(`[PodcastController] Create: Library not found "${payload.libraryId}"`)
return res.status(404).send('Library not found')