diff options
Diffstat (limited to 'server/models/video/video-change-ownership.ts')
-rw-r--r-- | server/models/video/video-change-ownership.ts | 10 |
1 files changed, 3 insertions, 7 deletions
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 { | |||
46 | model: VideoModel.scope([ | 46 | model: VideoModel.scope([ |
47 | VideoScopeNames.WITH_THUMBNAILS, | 47 | VideoScopeNames.WITH_THUMBNAILS, |
48 | VideoScopeNames.WITH_WEBTORRENT_FILES, | 48 | VideoScopeNames.WITH_WEBTORRENT_FILES, |
49 | VideoScopeNames.WITH_STREAMING_PLAYLISTS | 49 | VideoScopeNames.WITH_STREAMING_PLAYLISTS, |
50 | VideoScopeNames.WITH_ACCOUNT_DETAILS | ||
50 | ]), | 51 | ]), |
51 | required: true | 52 | required: true |
52 | } | 53 | } |
@@ -129,12 +130,7 @@ export class VideoChangeOwnershipModel extends Model<VideoChangeOwnershipModel> | |||
129 | status: this.status, | 130 | status: this.status, |
130 | initiatorAccount: this.Initiator.toFormattedJSON(), | 131 | initiatorAccount: this.Initiator.toFormattedJSON(), |
131 | nextOwnerAccount: this.NextOwner.toFormattedJSON(), | 132 | nextOwnerAccount: this.NextOwner.toFormattedJSON(), |
132 | video: { | 133 | video: this.Video.toFormattedJSON(), |
133 | id: this.Video.id, | ||
134 | uuid: this.Video.uuid, | ||
135 | url: this.Video.url, | ||
136 | name: this.Video.name | ||
137 | }, | ||
138 | createdAt: this.createdAt | 134 | createdAt: this.createdAt |
139 | } | 135 | } |
140 | } | 136 | } |