From 05c114f5b48c318dfb0cd3988c9adf24b581efb5 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 20 Oct 2021 09:25:13 +0200 Subject: [PATCH] Fix max pagination in find in bulk --- client/src/app/shared/shared-search/find-in-bulk.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/app/shared/shared-search/find-in-bulk.service.ts b/client/src/app/shared/shared-search/find-in-bulk.service.ts index 30cddc154..8ca64c37e 100644 --- a/client/src/app/shared/shared-search/find-in-bulk.service.ts +++ b/client/src/app/shared/shared-search/find-in-bulk.service.ts @@ -91,19 +91,19 @@ export class FindInBulkService { private getVideosInBulk (uuids: string[]) { logger('Fetching videos %s.', uuids.join(', ')) - return this.searchService.searchVideos({ uuids }) + return this.searchService.searchVideos({ uuids, componentPagination: { itemsPerPage: uuids.length, currentPage: 1 } }) } private getChannelsInBulk (handles: string[]) { logger('Fetching channels %s.', handles.join(', ')) - return this.searchService.searchVideoChannels({ handles }) + return this.searchService.searchVideoChannels({ handles, componentPagination: { itemsPerPage: handles.length, currentPage: 1 } }) } private getPlaylistsInBulk (uuids: string[]) { logger('Fetching playlists %s.', uuids.join(', ')) - return this.searchService.searchVideoPlaylists({ uuids }) + return this.searchService.searchVideoPlaylists({ uuids, componentPagination: { itemsPerPage: uuids.length, currentPage: 1 } }) } private buildBulkObservableObject

(bulkGet: (params: P[]) => Observable) {