mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-30 20:24:05 +01:00
New data model fix library stats
This commit is contained in:
1 parent
57399bb79e
commit
eea3e2583c
8 files changed
+69
-33
No files matched your search
@@ -44,7 +44,7 @@ class LibraryController {
|
||||
if (req.query.include && req.query.include === 'filterdata') {
|
||||
return res.json({
|
||||
filterdata: libraryHelpers.getDistinctFilterDataNew(req.libraryItems),
|
||||
issues: libraryHelpers.getNumIssues(req.libraryItems),
|
||||
issues: req.libraryItems.filter(li => li.hasIssues).length,
|
||||
library: req.library
|
||||
})
|
||||
}
|
||||
@@ -439,7 +439,6 @@ class LibraryController {
|
||||
|
||||
async stats(req, res) {
|
||||
var libraryItems = req.libraryItems
|
||||
|
||||
var authorsWithCount = libraryHelpers.getAuthorsWithCount(libraryItems)
|
||||
var genresWithCount = libraryHelpers.getGenresWithCount(libraryItems)
|
||||
var durationStats = libraryHelpers.getItemDurationStats(libraryItems)
|
||||
|
||||
Reference in new issue
Block a user