From 4c9e9d2ee9899ba48b86eda18d44638a78587ac5 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Sun, 28 Jun 2020 16:20:23 +0200 Subject: align ownership change video list table with moderation tables --- server/models/video/video-change-ownership.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'server/models/video/video-change-ownership.ts') diff --git a/server/models/video/video-change-ownership.ts b/server/models/video/video-change-ownership.ts index aecb03c14..ac0ab7e8b 100644 --- a/server/models/video/video-change-ownership.ts +++ b/server/models/video/video-change-ownership.ts @@ -46,7 +46,8 @@ enum ScopeNames { model: VideoModel.scope([ VideoScopeNames.WITH_THUMBNAILS, VideoScopeNames.WITH_WEBTORRENT_FILES, - VideoScopeNames.WITH_STREAMING_PLAYLISTS + VideoScopeNames.WITH_STREAMING_PLAYLISTS, + VideoScopeNames.WITH_ACCOUNT_DETAILS ]), required: true } @@ -129,12 +130,7 @@ export class VideoChangeOwnershipModel extends Model status: this.status, initiatorAccount: this.Initiator.toFormattedJSON(), nextOwnerAccount: this.NextOwner.toFormattedJSON(), - video: { - id: this.Video.id, - uuid: this.Video.uuid, - url: this.Video.url, - name: this.Video.name - }, + video: this.Video.toFormattedJSON(), createdAt: this.createdAt } } -- cgit v1.2.3