mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-05-24 01:13:00 -04:00
Update search to exclude returning series with no books #3736
This commit is contained in:
parent
46ba342d49
commit
d60ad96f8a
@ -1195,11 +1195,13 @@ module.exports = {
|
|||||||
libraryItem.media.series = []
|
libraryItem.media.series = []
|
||||||
return libraryItem.toOldJSON()
|
return libraryItem.toOldJSON()
|
||||||
})
|
})
|
||||||
|
if (books.length) {
|
||||||
seriesMatches.push({
|
seriesMatches.push({
|
||||||
series: series.toOldJSON(),
|
series: series.toOldJSON(),
|
||||||
books
|
books
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Search authors
|
// Search authors
|
||||||
const authorMatches = await authorFilters.search(library.id, textSearchQuery, limit, offset)
|
const authorMatches = await authorFilters.search(library.id, textSearchQuery, limit, offset)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user