fix: add limit to usersUserIdItemsGet request

This commit is contained in:
Gabe Farrell 2025-11-14 16:50:14 -05:00
parent afe8454359
commit 13981aebaa
2 changed files with 3 additions and 0 deletions

View file

@ -165,6 +165,7 @@ class LibraryScreen extends _$LibraryScreen {
parentId: viewModel.id,
sortBy: [ItemSortBy.datelastcontentadded, ItemSortBy.datecreated, ItemSortBy.sortname],
sortOrder: [SortOrder.descending],
limit: 9,
includeItemTypes: viewModel.collectionType.itemKinds.map((e) => e.dtoKind).toList(),
);
newRecommendations = [

View file

@ -700,6 +700,7 @@ class JellyService {
String? parentId,
List<ItemSortBy>? sortBy,
List<SortOrder>? sortOrder,
int? limit,
bool? recursive,
List<BaseItemKind>? includeItemTypes,
}) async {
@ -710,6 +711,7 @@ class JellyService {
sortBy: sortBy,
sortOrder: sortOrder,
includeItemTypes: includeItemTypes,
limit: limit,
);
}