]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix max pagination in find in bulk
authorChocobozzz <me@florianbigard.com>
Wed, 20 Oct 2021 07:25:13 +0000 (09:25 +0200)
committerChocobozzz <me@florianbigard.com>
Wed, 20 Oct 2021 07:25:44 +0000 (09:25 +0200)
client/src/app/shared/shared-search/find-in-bulk.service.ts

index 30cddc1544deee75cc7919c9ae9132625e3a2dc2..8ca64c37e20ea4e74c248c6bb7905f1fbad8c9c1 100644 (file)
@@ -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 <P extends number | string, R> (bulkGet: (params: P[]) => Observable<R>) {