diff options
author | Chocobozzz <me@florianbigard.com> | 2020-01-08 14:40:08 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-01-08 14:40:08 +0100 |
commit | 440d39c52d4efb878b6a2e21584d6b8f52072f27 (patch) | |
tree | 19ffd2dd545e125daf89c230e33d15f7827d10f7 /client/src/app/search/search.service.ts | |
parent | fe98765624cdd6695739bda719fcb726b71c2b2a (diff) | |
download | PeerTube-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/search/search.service.ts')
-rw-r--r-- | client/src/app/search/search.service.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/search/search.service.ts b/client/src/app/search/search.service.ts index bb5532757..7610fee8c 100644 --- a/client/src/app/search/search.service.ts +++ b/client/src/app/search/search.service.ts | |||
@@ -2,7 +2,7 @@ import { catchError, map, switchMap } from 'rxjs/operators' | |||
2 | import { HttpClient, HttpParams } from '@angular/common/http' | 2 | import { HttpClient, HttpParams } from '@angular/common/http' |
3 | import { Injectable } from '@angular/core' | 3 | import { Injectable } from '@angular/core' |
4 | import { Observable } from 'rxjs' | 4 | import { Observable } from 'rxjs' |
5 | import { ComponentPagination } from '@app/shared/rest/component-pagination.model' | 5 | import { ComponentPaginationLight } from '@app/shared/rest/component-pagination.model' |
6 | import { VideoService } from '@app/shared/video/video.service' | 6 | import { VideoService } from '@app/shared/video/video.service' |
7 | import { RestExtractor, RestService } from '@app/shared' | 7 | import { RestExtractor, RestService } from '@app/shared' |
8 | import { environment } from '../../environments/environment' | 8 | import { environment } from '../../environments/environment' |
@@ -25,7 +25,7 @@ export class SearchService { | |||
25 | 25 | ||
26 | searchVideos (parameters: { | 26 | searchVideos (parameters: { |
27 | search: string, | 27 | search: string, |
28 | componentPagination: ComponentPagination, | 28 | componentPagination: ComponentPaginationLight, |
29 | advancedSearch: AdvancedSearch | 29 | advancedSearch: AdvancedSearch |
30 | }): Observable<ResultList<Video>> { | 30 | }): Observable<ResultList<Video>> { |
31 | const { search, componentPagination, advancedSearch } = parameters | 31 | const { search, componentPagination, advancedSearch } = parameters |
@@ -51,7 +51,7 @@ export class SearchService { | |||
51 | 51 | ||
52 | searchVideoChannels (parameters: { | 52 | searchVideoChannels (parameters: { |
53 | search: string, | 53 | search: string, |
54 | componentPagination: ComponentPagination | 54 | componentPagination: ComponentPaginationLight |
55 | }): Observable<ResultList<VideoChannel>> { | 55 | }): Observable<ResultList<VideoChannel>> { |
56 | const { search, componentPagination } = parameters | 56 | const { search, componentPagination } = parameters |
57 | 57 | ||