mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-30 06:39:37 +02:00
Add libraryItemIds to collapsedSeries objects
This commit is contained in:
parent
a668921e29
commit
c674042319
1 changed files with 4 additions and 2 deletions
|
@ -314,7 +314,8 @@ module.exports = {
|
||||||
booksToInclude.push(book.id)
|
booksToInclude.push(book.id)
|
||||||
bookSeriesToInclude.push({
|
bookSeriesToInclude.push({
|
||||||
id: book.bookSeries.id,
|
id: book.bookSeries.id,
|
||||||
numBooks: s.dataValues.numBooks
|
numBooks: s.dataValues.numBooks,
|
||||||
|
libraryItemIds: s.books?.map((b) => b.libraryItem.id) || []
|
||||||
})
|
})
|
||||||
booksToExclude = booksToExclude.filter((bid) => bid !== book.id)
|
booksToExclude = booksToExclude.filter((bid) => bid !== book.id)
|
||||||
found = true
|
found = true
|
||||||
|
@ -594,7 +595,8 @@ module.exports = {
|
||||||
name: collapsedSeries.series.name,
|
name: collapsedSeries.series.name,
|
||||||
nameIgnorePrefix: collapsedSeries.series.nameIgnorePrefix,
|
nameIgnorePrefix: collapsedSeries.series.nameIgnorePrefix,
|
||||||
sequence: collapsedSeries.sequence,
|
sequence: collapsedSeries.sequence,
|
||||||
numBooks: collapseSeriesObj?.numBooks || 0
|
numBooks: collapseSeriesObj?.numBooks || 0,
|
||||||
|
libraryItemIds: collapseSeriesObj?.libraryItemIds || []
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue