Update JSDocs, remove unused libraryId replacement

This commit is contained in:
advplyr 2024-03-14 14:37:24 -05:00
parent d02fc2debe
commit 521db90ae0
2 changed files with 6 additions and 7 deletions

View File

@ -75,7 +75,7 @@ module.exports = {
/** /**
* Get library items for most recently added shelf * Get library items for most recently added shelf
* @param {oldLibrary} library * @param {import('../../objects/Library')} library
* @param {oldUser} user * @param {oldUser} user
* @param {string[]} include * @param {string[]} include
* @param {number} limit * @param {number} limit
@ -120,7 +120,7 @@ module.exports = {
/** /**
* Get library items for continue series shelf * Get library items for continue series shelf
* @param {string} library * @param {import('../../objects/Library')} library
* @param {oldUser} user * @param {oldUser} user
* @param {string[]} include * @param {string[]} include
* @param {number} limit * @param {number} limit
@ -145,7 +145,7 @@ module.exports = {
/** /**
* Get library items or podcast episodes for the "Listen Again" and "Read Again" shelf * Get library items or podcast episodes for the "Listen Again" and "Read Again" shelf
* @param {oldLibrary} library * @param {import('../../objects/Library')} library
* @param {oldUser} user * @param {oldUser} user
* @param {string[]} include * @param {string[]} include
* @param {number} limit * @param {number} limit

View File

@ -633,12 +633,12 @@ module.exports = {
* 2. Has no books in progress * 2. Has no books in progress
* 3. Has at least 1 unfinished book * 3. Has at least 1 unfinished book
* TODO: Reduce queries * TODO: Reduce queries
* @param {string} libraryId * @param {import('../../objects/Library')} library
* @param {oldUser} user * @param {import('../../objects/user/User')} user
* @param {string[]} include * @param {string[]} include
* @param {number} limit * @param {number} limit
* @param {number} offset * @param {number} offset
* @returns {object} { libraryItems:LibraryItem[], count:number } * @returns {{ libraryItems:import('../../models/LibraryItem')[], count:number }}
*/ */
async getContinueSeriesLibraryItems(library, user, include, limit, offset) { async getContinueSeriesLibraryItems(library, user, include, limit, offset) {
const libraryId = library.id const libraryId = library.id
@ -687,7 +687,6 @@ module.exports = {
}, },
replacements: { replacements: {
userId: user.id, userId: user.id,
libraryId: libraryId,
...userPermissionBookWhere.replacements ...userPermissionBookWhere.replacements
}, },
include: { include: {