mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-12-05 22:46:27 +01:00
Update:Only load collections when needed
This commit is contained in:
1 parent
354e16e462
commit
5a9eed0a5a
8 files changed
+87
-24
No files matched your search
@@ -200,7 +200,7 @@ class PlaylistController {
|
||||
|
||||
// POST: api/playlists/collection/:collectionId
|
||||
async createFromCollection(req, res) {
|
||||
let collection = Database.collections.find(c => c.id === req.params.collectionId)
|
||||
let collection = await Database.models.collection.getById(req.params.collectionId)
|
||||
if (!collection) {
|
||||
return res.status(404).send('Collection not found')
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user