X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmodels%2Fvideo%2Fvideo-change-ownership.ts;h=ac0ab7e8b9088c1a3158b4696cb5c2bc7dd6c3a0;hb=97816649b793bdd0f3df64631ae0ef7cf3d7461c;hp=aecb03c14713aed661c8d3456fd08a119da1fadd;hpb=26d6bf6533023326fa017812cf31bbe20c752d36;p=github%2FChocobozzz%2FPeerTube.git 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 } }