aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-main/video
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared/shared-main/video')
-rw-r--r--client/src/app/shared/shared-main/video/video-import.service.ts1
-rw-r--r--client/src/app/shared/shared-main/video/video-ownership.service.ts7
2 files changed, 2 insertions, 6 deletions
diff --git a/client/src/app/shared/shared-main/video/video-import.service.ts b/client/src/app/shared/shared-main/video/video-import.service.ts
index f9720033a..607c08d71 100644
--- a/client/src/app/shared/shared-main/video/video-import.service.ts
+++ b/client/src/app/shared/shared-main/video/video-import.service.ts
@@ -64,7 +64,6 @@ export class VideoImportService {
64 .get<ResultList<VideoImport>>(UserService.BASE_USERS_URL + '/me/videos/imports', { params }) 64 .get<ResultList<VideoImport>>(UserService.BASE_USERS_URL + '/me/videos/imports', { params })
65 .pipe( 65 .pipe(
66 switchMap(res => this.extractVideoImports(res)), 66 switchMap(res => this.extractVideoImports(res)),
67 map(res => this.restExtractor.convertResultListDateToHuman(res)),
68 catchError(err => this.restExtractor.handleError(err)) 67 catchError(err => this.restExtractor.handleError(err))
69 ) 68 )
70 } 69 }
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) {