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-main/video/video-edit.model.ts | 6 ++++-- client/src/app/shared/shared-video-live/live-video.service.ts | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'client/src/app/shared') diff --git a/client/src/app/shared/shared-main/video/video-edit.model.ts b/client/src/app/shared/shared-main/video/video-edit.model.ts index ea0456942..436598af6 100644 --- a/client/src/app/shared/shared-main/video/video-edit.model.ts +++ b/client/src/app/shared/shared-main/video/video-edit.model.ts @@ -20,11 +20,13 @@ export class VideoEdit implements VideoUpdate { previewfile?: any thumbnailUrl: string previewUrl: string - uuid?: string - id?: number scheduleUpdate?: VideoScheduleUpdate originallyPublishedAt?: Date | string + id?: number + uuid?: string + shortUUID?: string + pluginData?: any constructor ( 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