diff options
author | Chocobozzz <me@florianbigard.com> | 2021-08-18 11:39:45 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-08-18 11:39:45 +0200 |
commit | 2e80d256cc75b4b02c8efc3d3e4cdf57ddf401a8 (patch) | |
tree | 2f935cfe607726b39404e620e0d5d0c43e55c1f9 /client/src/app/shared/shared-video-live | |
parent | 586a7478b609ed4b7518419e91f0a799c23fbaa1 (diff) | |
download | PeerTube-2e80d256cc75b4b02c8efc3d3e4cdf57ddf401a8.tar.gz PeerTube-2e80d256cc75b4b02c8efc3d3e4cdf57ddf401a8.tar.zst PeerTube-2e80d256cc75b4b02c8efc3d3e4cdf57ddf401a8.zip |
Fix live/upload redirection
Diffstat (limited to 'client/src/app/shared/shared-video-live')
-rw-r--r-- | client/src/app/shared/shared-video-live/live-video.service.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/shared/shared-video-live/live-video.service.ts b/client/src/app/shared/shared-video-live/live-video.service.ts index b02442eae..0d166e91d 100644 --- a/client/src/app/shared/shared-video-live/live-video.service.ts +++ b/client/src/app/shared/shared-video-live/live-video.service.ts | |||
@@ -2,7 +2,7 @@ import { catchError } from 'rxjs/operators' | |||
2 | import { HttpClient } from '@angular/common/http' | 2 | import { HttpClient } from '@angular/common/http' |
3 | import { Injectable } from '@angular/core' | 3 | import { Injectable } from '@angular/core' |
4 | import { RestExtractor } from '@app/core' | 4 | import { RestExtractor } from '@app/core' |
5 | import { LiveVideo, LiveVideoCreate, LiveVideoUpdate } from '@shared/models' | 5 | import { LiveVideo, LiveVideoCreate, LiveVideoUpdate, VideoCreateResult } from '@shared/models' |
6 | import { environment } from '../../../environments/environment' | 6 | import { environment } from '../../../environments/environment' |
7 | 7 | ||
8 | @Injectable() | 8 | @Injectable() |
@@ -16,7 +16,7 @@ export class LiveVideoService { | |||
16 | 16 | ||
17 | goLive (video: LiveVideoCreate) { | 17 | goLive (video: LiveVideoCreate) { |
18 | return this.authHttp | 18 | return this.authHttp |
19 | .post<{ video: { id: number, uuid: string } }>(LiveVideoService.BASE_VIDEO_LIVE_URL, video) | 19 | .post<{ video: VideoCreateResult }>(LiveVideoService.BASE_VIDEO_LIVE_URL, video) |
20 | .pipe(catchError(err => this.restExtractor.handleError(err))) | 20 | .pipe(catchError(err => this.restExtractor.handleError(err))) |
21 | } | 21 | } |
22 | 22 | ||