diff --git a/server/utils/queries/libraryItemsBookFilters.js b/server/utils/queries/libraryItemsBookFilters.js index f4634362..835781e1 100644 --- a/server/utils/queries/libraryItemsBookFilters.js +++ b/server/utils/queries/libraryItemsBookFilters.js @@ -566,7 +566,7 @@ module.exports = { ], order: sortOrder, subQuery: false, - limit, + limit: limit || null, offset }) diff --git a/server/utils/queries/libraryItemsPodcastFilters.js b/server/utils/queries/libraryItemsPodcastFilters.js index 31eeb3c5..1f8d70a9 100644 --- a/server/utils/queries/libraryItemsPodcastFilters.js +++ b/server/utils/queries/libraryItemsPodcastFilters.js @@ -166,7 +166,7 @@ module.exports = { ], order: this.getOrder(sortBy, sortDesc), subQuery: false, - limit, + limit: limit || null, offset })