diff options
Diffstat (limited to 'client/src/app/shared/shared-moderation/video-block.service.ts')
-rw-r--r-- | client/src/app/shared/shared-moderation/video-block.service.ts | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/client/src/app/shared/shared-moderation/video-block.service.ts b/client/src/app/shared/shared-moderation/video-block.service.ts index 6272b672f..ab352a2d6 100644 --- a/client/src/app/shared/shared-moderation/video-block.service.ts +++ b/client/src/app/shared/shared-moderation/video-block.service.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | import { SortMeta } from 'primeng/api' | 1 | import { SortMeta } from 'primeng/api' |
2 | import { from as observableFrom, Observable } from 'rxjs' | 2 | import { from as observableFrom, Observable } from 'rxjs' |
3 | import { catchError, concatMap, map, toArray } from 'rxjs/operators' | 3 | import { catchError, concatMap, toArray } from 'rxjs/operators' |
4 | import { HttpClient, HttpParams } from '@angular/common/http' | 4 | import { HttpClient, HttpParams } from '@angular/common/http' |
5 | import { Injectable } from '@angular/core' | 5 | import { Injectable } from '@angular/core' |
6 | import { RestExtractor, RestPagination, RestService } from '@app/core' | 6 | import { RestExtractor, RestPagination, RestService } from '@app/core' |
@@ -47,10 +47,7 @@ export class VideoBlockService { | |||
47 | if (type) params = params.append('type', type.toString()) | 47 | if (type) params = params.append('type', type.toString()) |
48 | 48 | ||
49 | return this.authHttp.get<ResultList<VideoBlacklist>>(VideoBlockService.BASE_VIDEOS_URL + 'blacklist', { params }) | 49 | return this.authHttp.get<ResultList<VideoBlacklist>>(VideoBlockService.BASE_VIDEOS_URL + 'blacklist', { params }) |
50 | .pipe( | 50 | .pipe(catchError(res => this.restExtractor.handleError(res))) |
51 | map(res => this.restExtractor.convertResultListDateToHuman(res)), | ||
52 | catchError(res => this.restExtractor.handleError(res)) | ||
53 | ) | ||
54 | } | 51 | } |
55 | 52 | ||
56 | unblockVideo (videoIdArgs: number | number[]) { | 53 | unblockVideo (videoIdArgs: number | number[]) { |