Update continue series shelf queries

This commit is contained in:
advplyr 2023-08-04 17:24:06 -05:00
parent 58da095bcf
commit 8edab98163
3 changed files with 114 additions and 47 deletions

View file

@ -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 = []