From 182527bfa88162a31b9908d1145ed81d7c3a542c Mon Sep 17 00:00:00 2001 From: CoffeeKnyte <67730400+CoffeeKnyte@users.noreply.github.com> Date: Tue, 30 Apr 2024 11:09:06 -0400 Subject: [PATCH] Update LibraryController.js used a lighter function to find total author count --- 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 30c9c0d9..0a0fb4d4 100644 --- a/server/controllers/LibraryController.js +++ b/server/controllers/LibraryController.js @@ -610,7 +610,7 @@ class LibraryController { const bookStats = await libraryItemsBookFilters.getBookLibraryStats(req.library.id) const longestBooks = await libraryItemsBookFilters.getLongestBooks(req.library.id, 10) - stats.totalAuthors = authors.length + stats.totalAuthors = await authorFilters.getAuthorsTotalCount(req.library.id) stats.authorsWithCount = authors stats.totalGenres = genres.length stats.genresWithCount = genres