From 6ff42dff2a1c541997b99679648876d70fa9909f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 12 Aug 2024 17:03:47 +0200 Subject: [PATCH] We don't need to load complete description anymore It's already included in classic payload --- .../app/+videos/+video-edit/video-update.resolver.ts | 4 +--- .../src/app/shared/shared-main/video/video.service.ts | 11 ----------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/client/src/app/+videos/+video-edit/video-update.resolver.ts b/client/src/app/+videos/+video-edit/video-update.resolver.ts index 258cc4958..23719095f 100644 --- a/client/src/app/+videos/+video-edit/video-update.resolver.ts +++ b/client/src/app/+videos/+video-edit/video-update.resolver.ts @@ -37,9 +37,7 @@ export class VideoUpdateResolver { private buildVideoObservables (video: VideoDetails) { return [ - this.videoService - .loadCompleteDescription(video.descriptionPath) - .pipe(map(description => Object.assign(video, { description }))), + of(video), this.videoService.getSource(video.id), diff --git a/client/src/app/shared/shared-main/video/video.service.ts b/client/src/app/shared/shared-main/video/video.service.ts index 8438d4de5..455a0c780 100644 --- a/client/src/app/shared/shared-main/video/video.service.ts +++ b/client/src/app/shared/shared-main/video/video.service.ts @@ -379,17 +379,6 @@ export class VideoService { // --------------------------------------------------------------------------- - loadCompleteDescription (descriptionPath: string) { - return this.authHttp - .get<{ description: string }>(environment.apiUrl + descriptionPath) - .pipe( - map(res => res.description), - catchError(err => this.restExtractor.handleError(err)) - ) - } - - // --------------------------------------------------------------------------- - generateDownloadUrl (options: { video: Video files: VideoFile[]