diff options
Diffstat (limited to 'client/src/app/shared/video-channel')
-rw-r--r-- | client/src/app/shared/video-channel/video-channel.service.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/shared/video-channel/video-channel.service.ts b/client/src/app/shared/video-channel/video-channel.service.ts index 0b9900208..8c000665f 100644 --- a/client/src/app/shared/video-channel/video-channel.service.ts +++ b/client/src/app/shared/video-channel/video-channel.service.ts | |||
@@ -27,7 +27,7 @@ export class VideoChannelService { | |||
27 | .pipe( | 27 | .pipe( |
28 | map(videoChannelHash => new VideoChannel(videoChannelHash)), | 28 | map(videoChannelHash => new VideoChannel(videoChannelHash)), |
29 | tap(videoChannel => this.videoChannelLoaded.next(videoChannel)), | 29 | tap(videoChannel => this.videoChannelLoaded.next(videoChannel)), |
30 | catchError(res => this.restExtractor.handleError(res)) | 30 | catchError(err => this.restExtractor.handleError(err)) |
31 | ) | 31 | ) |
32 | } | 32 | } |
33 | 33 | ||
@@ -35,7 +35,7 @@ export class VideoChannelService { | |||
35 | return this.authHttp.get<ResultList<VideoChannelServer>>(AccountService.BASE_ACCOUNT_URL + account.nameWithHost + '/video-channels') | 35 | return this.authHttp.get<ResultList<VideoChannelServer>>(AccountService.BASE_ACCOUNT_URL + account.nameWithHost + '/video-channels') |
36 | .pipe( | 36 | .pipe( |
37 | map(res => this.extractVideoChannels(res)), | 37 | map(res => this.extractVideoChannels(res)), |
38 | catchError((res) => this.restExtractor.handleError(res)) | 38 | catchError(err => this.restExtractor.handleError(err)) |
39 | ) | 39 | ) |
40 | } | 40 | } |
41 | 41 | ||
@@ -59,7 +59,7 @@ export class VideoChannelService { | |||
59 | const url = VideoChannelService.BASE_VIDEO_CHANNEL_URL + videoChannelUUID + '/avatar/pick' | 59 | const url = VideoChannelService.BASE_VIDEO_CHANNEL_URL + videoChannelUUID + '/avatar/pick' |
60 | 60 | ||
61 | return this.authHttp.post<{ avatar: Avatar }>(url, avatarForm) | 61 | return this.authHttp.post<{ avatar: Avatar }>(url, avatarForm) |
62 | .pipe(catchError(this.restExtractor.handleError)) | 62 | .pipe(catchError(err => this.restExtractor.handleError(err))) |
63 | } | 63 | } |
64 | 64 | ||
65 | removeVideoChannel (videoChannel: VideoChannel) { | 65 | removeVideoChannel (videoChannel: VideoChannel) { |