mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-06-28 19:50:23 +02:00
Update continue series shelf queries
This commit is contained in:
parent
58da095bcf
commit
8edab98163
3 changed files with 114 additions and 47 deletions
|
@ -437,6 +437,14 @@ module.exports = (sequelize) => {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get home page data personalized shelves
|
||||
* @param {oldLibrary} library
|
||||
* @param {string} userId
|
||||
* @param {string[]} include
|
||||
* @param {number} limit
|
||||
* @returns {object[]} array of shelf objects
|
||||
*/
|
||||
static async getPersonalizedShelves(library, userId, include, limit) {
|
||||
const isPodcastLibrary = library.mediaType === 'podcast'
|
||||
const shelves = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue