Update collection API routes to load libraryItems from DB

This commit is contained in:
advplyr
2023-08-12 15:01:27 -05:00
parent 38029d1202
commit db80cec168
8 changed files with 344 additions and 139 deletions

View File

@ -201,7 +201,7 @@ class PlaylistController {
// POST: api/playlists/collection/:collectionId
async createFromCollection(req, res) {
let collection = await Database.models.collection.getById(req.params.collectionId)
let collection = await Database.models.collection.getOldById(req.params.collectionId)
if (!collection) {
return res.status(404).send('Collection not found')
}