aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/users/user-history.service.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-01-08 14:40:08 +0100
committerChocobozzz <me@florianbigard.com>2020-01-08 14:40:08 +0100
commit440d39c52d4efb878b6a2e21584d6b8f52072f27 (patch)
tree19ffd2dd545e125daf89c230e33d15f7827d10f7 /client/src/app/shared/users/user-history.service.ts
parentfe98765624cdd6695739bda719fcb726b71c2b2a (diff)
downloadPeerTube-440d39c52d4efb878b6a2e21584d6b8f52072f27.tar.gz
PeerTube-440d39c52d4efb878b6a2e21584d6b8f52072f27.tar.zst
PeerTube-440d39c52d4efb878b6a2e21584d6b8f52072f27.zip
Skip videos count on client if we don't use it
Diffstat (limited to 'client/src/app/shared/users/user-history.service.ts')
-rw-r--r--client/src/app/shared/users/user-history.service.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/shared/users/user-history.service.ts b/client/src/app/shared/users/user-history.service.ts
index 9ed25bfc7..b358cdf20 100644
--- a/client/src/app/shared/users/user-history.service.ts
+++ b/client/src/app/shared/users/user-history.service.ts
@@ -5,7 +5,7 @@ import { RestExtractor } from '../rest/rest-extractor.service'
5import { RestService } from '../rest/rest.service' 5import { RestService } from '../rest/rest.service'
6import { Video } from '../video/video.model' 6import { Video } from '../video/video.model'
7import { catchError, map, switchMap } from 'rxjs/operators' 7import { catchError, map, switchMap } from 'rxjs/operators'
8import { ComponentPagination } from '@app/shared/rest/component-pagination.model' 8import { ComponentPaginationLight } from '@app/shared/rest/component-pagination.model'
9import { VideoService } from '@app/shared/video/video.service' 9import { VideoService } from '@app/shared/video/video.service'
10import { ResultList } from '../../../../../shared' 10import { ResultList } from '../../../../../shared'
11 11
@@ -20,7 +20,7 @@ export class UserHistoryService {
20 private videoService: VideoService 20 private videoService: VideoService
21 ) {} 21 ) {}
22 22
23 getUserVideosHistory (historyPagination: ComponentPagination) { 23 getUserVideosHistory (historyPagination: ComponentPaginationLight) {
24 const pagination = this.restService.componentPaginationToRestPagination(historyPagination) 24 const pagination = this.restService.componentPaginationToRestPagination(historyPagination)
25 25
26 let params = new HttpParams() 26 let params = new HttpParams()