Update LibraryController.js

used a lighter function to find total author count
This commit is contained in:
CoffeeKnyte 2024-04-30 11:09:06 -04:00 committed by GitHub
parent 10e7f142ec
commit 182527bfa8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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