aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/search/search.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/search/search.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/search/search.service.ts')
-rw-r--r--client/src/app/search/search.service.ts6
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'
2import { HttpClient, HttpParams } from '@angular/common/http' 2import { HttpClient, HttpParams } from '@angular/common/http'
3import { Injectable } from '@angular/core' 3import { Injectable } from '@angular/core'
4import { Observable } from 'rxjs' 4import { Observable } from 'rxjs'
5import { ComponentPagination } from '@app/shared/rest/component-pagination.model' 5import { ComponentPaginationLight } from '@app/shared/rest/component-pagination.model'
6import { VideoService } from '@app/shared/video/video.service' 6import { VideoService } from '@app/shared/video/video.service'
7import { RestExtractor, RestService } from '@app/shared' 7import { RestExtractor, RestService } from '@app/shared'
8import { environment } from '../../environments/environment' 8import { 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