Add:Create playlist from a collection #1226

This commit is contained in:
advplyr 2022-12-17 17:31:19 -06:00
parent 9b1f7f566f
commit 5165f11460
6 changed files with 143 additions and 12 deletions

View file

@ -123,7 +123,7 @@ class CollectionController {
middleware(req, res, next) {
if (req.params.id) {
var collection = this.db.collections.find(c => c.id === req.params.id)
const collection = this.db.collections.find(c => c.id === req.params.id)
if (!collection) {
return res.status(404).send('Collection not found')
}