mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-02-01 00:18:14 +01:00
Update LibraryController.js
used a lighter function to find total author count
This commit is contained in:
parent
10e7f142ec
commit
182527bfa8
@ -610,7 +610,7 @@ class LibraryController {
|
|||||||
const bookStats = await libraryItemsBookFilters.getBookLibraryStats(req.library.id)
|
const bookStats = await libraryItemsBookFilters.getBookLibraryStats(req.library.id)
|
||||||
const longestBooks = await libraryItemsBookFilters.getLongestBooks(req.library.id, 10)
|
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.authorsWithCount = authors
|
||||||
stats.totalGenres = genres.length
|
stats.totalGenres = genres.length
|
||||||
stats.genresWithCount = genres
|
stats.genresWithCount = genres
|
||||||
|
Loading…
Reference in New Issue
Block a user