mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-12-04 14:06:28 +01:00
Update:Only load libraries from db when needed
This commit is contained in:
1 parent
1c40af3eef
commit
1d974375a0
13 files changed
+189
-60
No files matched your search
@@ -19,7 +19,7 @@ class PodcastController {
|
||||
}
|
||||
const payload = req.body
|
||||
|
||||
const library = Database.libraries.find(lib => lib.id === payload.libraryId)
|
||||
const library = await Database.models.library.getOldById(payload.libraryId)
|
||||
if (!library) {
|
||||
Logger.error(`[PodcastController] Create: Library not found "${payload.libraryId}"`)
|
||||
return res.status(404).send('Library not found')
|
||||
|
||||
Reference in new issue
Block a user