Update LibraryItemController.js to respond with objects

Changes:
- `batchGet` (POST /api/items/batch/get)
This commit is contained in:
Paul Nettleton 2022-11-29 11:37:45 -06:00
parent cd37a7618e
commit b84882d9d1

View File

@ -308,7 +308,9 @@ class LibraryItemController {
const li = this.db.libraryItems.find(_li => _li.id === lid)
if (li) libraryItems.push(li.toJSONExpanded())
})
res.json(libraryItems)
res.json({
libraryItems: libraryItems
})
}
// POST: api/items/batch/quickmatch