mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-15 03:45:03 +02:00
Update query for continue series shelf
This commit is contained in:
parent
b9633691f4
commit
58da095bcf
4 changed files with 111 additions and 23 deletions
|
@ -464,6 +464,18 @@ module.exports = (sequelize) => {
|
|||
total: ebooksInProgressPayload.count
|
||||
})
|
||||
}
|
||||
|
||||
const continueSeriesPayload = await libraryFilters.getLibraryItemsContinueSeries(library, userId, include, limit)
|
||||
if (continueSeriesPayload.libraryItems.length) {
|
||||
shelves.push({
|
||||
id: 'continue-series',
|
||||
label: 'Continue Series',
|
||||
labelStringKey: 'LabelContinueSeries',
|
||||
type: 'book',
|
||||
entities: continueSeriesPayload.libraryItems,
|
||||
total: continueSeriesPayload.count
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
const mostRecentPayload = await libraryFilters.getLibraryItemsMostRecentlyAdded(library, userId, include, limit)
|
||||
|
@ -478,9 +490,6 @@ module.exports = (sequelize) => {
|
|||
})
|
||||
}
|
||||
|
||||
// TODO: Handle continue series library items
|
||||
const continueSeriesPayload = await libraryFilters.getLibraryItemsContinueSeries(library, userId, include, limit)
|
||||
|
||||
return shelves
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue