aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-06-28 16:20:23 +0200
committerRigel Kent <sendmemail@rigelk.eu>2020-06-28 16:20:23 +0200
commit4c9e9d2ee9899ba48b86eda18d44638a78587ac5 (patch)
tree06395596d7dfdf6c9a93d0dbb5683ab3e26cf1fe /server
parentafa4456c1a52b1dde78aa2ffb7b89000e6212392 (diff)
downloadPeerTube-4c9e9d2ee9899ba48b86eda18d44638a78587ac5.tar.gz
PeerTube-4c9e9d2ee9899ba48b86eda18d44638a78587ac5.tar.zst
PeerTube-4c9e9d2ee9899ba48b86eda18d44638a78587ac5.zip
align ownership change video list table with moderation tables
Diffstat (limited to 'server')
-rw-r--r--server/models/video/video-change-ownership.ts10
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 }