private videoService: VideoService
) {}
- getUserVideosHistory (historyPagination: ComponentPaginationLight) {
+ getUserVideosHistory (historyPagination: ComponentPaginationLight, search?: string) {
const pagination = this.restService.componentPaginationToRestPagination(historyPagination)
let params = new HttpParams()
params = this.restService.addRestGetParams(params, pagination)
+ if (search) params = params.append('search', search)
+
return this.authHttp
.get<ResultList<Video>>(UserHistoryService.BASE_USER_VIDEOS_HISTORY_URL, { params })
.pipe(