1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Update src/utils/jellyfin-apiclient/getItems.ts

Co-authored-by: Bill Thornton <thornbill@users.noreply.github.com>
This commit is contained in:
dann-merlin 2023-03-29 05:02:23 +00:00 committed by GitHub
parent 5932decce5
commit 2154ea64ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,8 +49,7 @@ function mergeResults(results: BaseItemDtoQueryResult[]) {
return merged;
}
export function getItems(apiClient: ApiClient, userId: string, options?: any):
Promise<BaseItemDtoQueryResult> {
export function getItems(apiClient: ApiClient, userId: string, options?: any) {
if (options.Ids === undefined ||
options.Ids.split(',').length <= ITEMS_PER_REQUEST_LIMIT) {
return apiClient.getItems(apiClient.getCurrentUserId(), options);