X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-main%2Fvideo%2Fvideo-ownership.service.ts;h=1e8f7f68cc9f40248aee55d9d541075754700d74;hb=HEAD;hp=bc0e1b1d10ca5fc4367a6fa27ba0cda75176de79;hpb=e8bffe9690307f2686ed5573cae2b86ee5f57789;p=github%2FChocobozzz%2FPeerTube.git 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 @@ import { SortMeta } from 'primeng/api' import { Observable } from 'rxjs' -import { catchError, map } from 'rxjs/operators' +import { catchError } from 'rxjs/operators' import { HttpClient, HttpParams } from '@angular/common/http' import { Injectable } from '@angular/core' import { RestExtractor, RestPagination, RestService } from '@app/core' @@ -35,10 +35,7 @@ export class VideoOwnershipService { params = this.restService.addRestGetParams(params, pagination, sort) return this.authHttp.get>(url, { params }) - .pipe( - map(res => this.restExtractor.convertResultListDateToHuman(res)), - catchError(res => this.restExtractor.handleError(res)) - ) + .pipe(catchError(res => this.restExtractor.handleError(res))) } acceptOwnership (id: number, input: VideoChangeOwnershipAccept) {