aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-10-20 09:25:13 +0200
committerChocobozzz <me@florianbigard.com>2021-10-20 09:25:44 +0200
commit05c114f5b48c318dfb0cd3988c9adf24b581efb5 (patch)
treee22106c6b82f0efa49524e24790f662228e3844a /client/src
parent978c87e7f58b6673fe60f04f1767bc9e02ea4936 (diff)
downloadPeerTube-05c114f5b48c318dfb0cd3988c9adf24b581efb5.tar.gz
PeerTube-05c114f5b48c318dfb0cd3988c9adf24b581efb5.tar.zst
PeerTube-05c114f5b48c318dfb0cd3988c9adf24b581efb5.zip
Fix max pagination in find in bulk
Diffstat (limited to 'client/src')
-rw-r--r--client/src/app/shared/shared-search/find-in-bulk.service.ts6
1 files 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 {
91 private getVideosInBulk (uuids: string[]) { 91 private getVideosInBulk (uuids: string[]) {
92 logger('Fetching videos %s.', uuids.join(', ')) 92 logger('Fetching videos %s.', uuids.join(', '))
93 93
94 return this.searchService.searchVideos({ uuids }) 94 return this.searchService.searchVideos({ uuids, componentPagination: { itemsPerPage: uuids.length, currentPage: 1 } })
95 } 95 }
96 96
97 private getChannelsInBulk (handles: string[]) { 97 private getChannelsInBulk (handles: string[]) {
98 logger('Fetching channels %s.', handles.join(', ')) 98 logger('Fetching channels %s.', handles.join(', '))
99 99
100 return this.searchService.searchVideoChannels({ handles }) 100 return this.searchService.searchVideoChannels({ handles, componentPagination: { itemsPerPage: handles.length, currentPage: 1 } })
101 } 101 }
102 102
103 private getPlaylistsInBulk (uuids: string[]) { 103 private getPlaylistsInBulk (uuids: string[]) {
104 logger('Fetching playlists %s.', uuids.join(', ')) 104 logger('Fetching playlists %s.', uuids.join(', '))
105 105
106 return this.searchService.searchVideoPlaylists({ uuids }) 106 return this.searchService.searchVideoPlaylists({ uuids, componentPagination: { itemsPerPage: uuids.length, currentPage: 1 } })
107 } 107 }
108 108
109 private buildBulkObservableObject <P extends number | string, R> (bulkGet: (params: P[]) => Observable<R>) { 109 private buildBulkObservableObject <P extends number | string, R> (bulkGet: (params: P[]) => Observable<R>) {