aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-main/video/video-ownership.service.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared/shared-main/video/video-ownership.service.ts')
-rw-r--r--client/src/app/shared/shared-main/video/video-ownership.service.ts7
1 files changed, 2 insertions, 5 deletions
diff --git a/client/src/app/shared/shared-main/video/video-ownership.service.ts b/client/src/app/shared/shared-main/video/video-ownership.service.ts
index bc0e1b1d1..1e8f7f68c 100644
--- a/client/src/app/shared/shared-main/video/video-ownership.service.ts
+++ b/client/src/app/shared/shared-main/video/video-ownership.service.ts
@@ -1,6 +1,6 @@
1import { SortMeta } from 'primeng/api' 1import { SortMeta } from 'primeng/api'
2import { Observable } from 'rxjs' 2import { Observable } from 'rxjs'
3import { catchError, map } from 'rxjs/operators' 3import { catchError } from 'rxjs/operators'
4import { HttpClient, HttpParams } from '@angular/common/http' 4import { HttpClient, HttpParams } from '@angular/common/http'
5import { Injectable } from '@angular/core' 5import { Injectable } from '@angular/core'
6import { RestExtractor, RestPagination, RestService } from '@app/core' 6import { RestExtractor, RestPagination, RestService } from '@app/core'
@@ -35,10 +35,7 @@ export class VideoOwnershipService {
35 params = this.restService.addRestGetParams(params, pagination, sort) 35 params = this.restService.addRestGetParams(params, pagination, sort)
36 36
37 return this.authHttp.get<ResultList<VideoChangeOwnership>>(url, { params }) 37 return this.authHttp.get<ResultList<VideoChangeOwnership>>(url, { params })
38 .pipe( 38 .pipe(catchError(res => this.restExtractor.handleError(res)))
39 map(res => this.restExtractor.convertResultListDateToHuman(res)),
40 catchError(res => this.restExtractor.handleError(res))
41 )
42 } 39 }
43 40
44 acceptOwnership (id: number, input: VideoChangeOwnershipAccept) { 41 acceptOwnership (id: number, input: VideoChangeOwnershipAccept) {