Fix: response for library collections

This commit is contained in:
Nicholas Wallace 2024-02-25 18:42:39 +00:00
parent c9832cab99
commit 6525ccaa50

View file

@ -551,9 +551,10 @@ class LibraryController {
* content:
* application/json:
* schema:
* type: array
* items:
* $ref: '#/components/schemas/collectionExpanded'
* results:
* type: array
* items:
* $ref: '#/components/schemas/collectionExpanded'
*/
async getCollectionsForLibrary(req, res) {
const include = (req.query.include || '').split(',').map(v => v.trim().toLowerCase()).filter(v => !!v)