Update search to exclude returning series with no books #3736
Some checks failed
Run Unit Tests / Run Unit Tests (push) Waiting to run
CodeQL / Analyze (push) Has been cancelled
Build and Push Docker Image / build (push) Has been cancelled
Integration Test / build and test (push) Has been cancelled

This commit is contained in:
advplyr 2025-05-11 16:59:11 -05:00
parent 46ba342d49
commit d60ad96f8a

View file

@ -1195,10 +1195,12 @@ module.exports = {
libraryItem.media.series = []
return libraryItem.toOldJSON()
})
seriesMatches.push({
series: series.toOldJSON(),
books
})
if (books.length) {
seriesMatches.push({
series: series.toOldJSON(),
books
})
}
}
// Search authors