From 7229cfce84ada9e9500523344cdd7a63cdf47d84 Mon Sep 17 00:00:00 2001 From: CoffeeKnyte <67730400+CoffeeKnyte@users.noreply.github.com> Date: Wed, 1 May 2024 07:20:48 -0400 Subject: [PATCH] Added limit 10 to getAuthorsWithCount() call As per nichwall's request --- server/controllers/LibraryController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/controllers/LibraryController.js b/server/controllers/LibraryController.js index 0a0fb4d4..77b79ac0 100644 --- a/server/controllers/LibraryController.js +++ b/server/controllers/LibraryController.js @@ -605,7 +605,7 @@ class LibraryController { } if (req.library.isBook) { - const authors = await authorFilters.getAuthorsWithCount(req.library.id) + const authors = await authorFilters.getAuthorsWithCount(req.library.id, 10) const genres = await libraryItemsBookFilters.getGenresWithCount(req.library.id) const bookStats = await libraryItemsBookFilters.getBookLibraryStats(req.library.id) const longestBooks = await libraryItemsBookFilters.getLongestBooks(req.library.id, 10)