From 2e80d256cc75b4b02c8efc3d3e4cdf57ddf401a8 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 18 Aug 2021 11:39:45 +0200 Subject: Fix live/upload redirection --- client/src/app/shared/shared-video-live/live-video.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/src/app/shared/shared-video-live') 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' import { HttpClient } from '@angular/common/http' import { Injectable } from '@angular/core' import { RestExtractor } from '@app/core' -import { LiveVideo, LiveVideoCreate, LiveVideoUpdate } from '@shared/models' +import { LiveVideo, LiveVideoCreate, LiveVideoUpdate, VideoCreateResult } from '@shared/models' import { environment } from '../../../environments/environment' @Injectable() @@ -16,7 +16,7 @@ export class LiveVideoService { goLive (video: LiveVideoCreate) { return this.authHttp - .post<{ video: { id: number, uuid: string } }>(LiveVideoService.BASE_VIDEO_LIVE_URL, video) + .post<{ video: VideoCreateResult }>(LiveVideoService.BASE_VIDEO_LIVE_URL, video) .pipe(catchError(err => this.restExtractor.handleError(err))) } -- cgit v1.2.3