From 6525ccaa509654feb37aa0c3be9c2cc121ae8588 Mon Sep 17 00:00:00 2001 From: Nicholas Wallace Date: Sun, 25 Feb 2024 18:42:39 +0000 Subject: [PATCH] Fix: response for library collections --- server/controllers/LibraryController.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/server/controllers/LibraryController.js b/server/controllers/LibraryController.js index 1e078c9f7..7fdf20853 100644 --- a/server/controllers/LibraryController.js +++ b/server/controllers/LibraryController.js @@ -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)