From 98d9fd8c32a1949d9e14ea37e534cb8d7006dc7f Mon Sep 17 00:00:00 2001 From: advplyr Date: Sat, 9 Sep 2023 15:01:58 -0500 Subject: [PATCH] Fix:Get all items api endpoint support providing no limit #2067 --- server/utils/queries/libraryItemsBookFilters.js | 2 +- server/utils/queries/libraryItemsPodcastFilters.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 })