diff options
author | Lucas Declercq <lucas.declercq@ineat-conseil.fr> | 2018-10-08 14:45:22 +0200 |
---|---|---|
committer | Lucas Declercq <lucas.declercq@ineat-conseil.fr> | 2018-10-08 14:45:22 +0200 |
commit | 7f2cfe3a792856f7de6f1d13688aa3d06ec1bf70 (patch) | |
tree | 8042222877ed6dc983ff0e13ea3ec56aa1a4386a /server/models/video | |
parent | 4ffdcfc63b8c804a0aea20609544c859ab57318b (diff) | |
download | PeerTube-7f2cfe3a792856f7de6f1d13688aa3d06ec1bf70.tar.gz PeerTube-7f2cfe3a792856f7de6f1d13688aa3d06ec1bf70.tar.zst PeerTube-7f2cfe3a792856f7de6f1d13688aa3d06ec1bf70.zip |
Rename downloadingEnabled property to downloadEnabled
Diffstat (limited to 'server/models/video')
-rw-r--r-- | server/models/video/video-format-utils.ts | 4 | ||||
-rw-r--r-- | server/models/video/video.ts | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/server/models/video/video-format-utils.ts b/server/models/video/video-format-utils.ts index 0b0da4181..e7bff2ed7 100644 --- a/server/models/video/video-format-utils.ts +++ b/server/models/video/video-format-utils.ts | |||
@@ -128,7 +128,7 @@ function videoModelToFormattedDetailsJSON (video: VideoModel): VideoDetails { | |||
128 | account: video.VideoChannel.Account.toFormattedJSON(), | 128 | account: video.VideoChannel.Account.toFormattedJSON(), |
129 | tags, | 129 | tags, |
130 | commentsEnabled: video.commentsEnabled, | 130 | commentsEnabled: video.commentsEnabled, |
131 | downloadingEnabled: video.downloadingEnabled, | 131 | downloadEnabled: video.downloadEnabled, |
132 | waitTranscoding: video.waitTranscoding, | 132 | waitTranscoding: video.waitTranscoding, |
133 | state: { | 133 | state: { |
134 | id: video.state, | 134 | id: video.state, |
@@ -260,7 +260,7 @@ function videoModelToActivityPubObject (video: VideoModel): VideoTorrentObject { | |||
260 | waitTranscoding: video.waitTranscoding, | 260 | waitTranscoding: video.waitTranscoding, |
261 | state: video.state, | 261 | state: video.state, |
262 | commentsEnabled: video.commentsEnabled, | 262 | commentsEnabled: video.commentsEnabled, |
263 | downloadingEnabled: video.downloadingEnabled, | 263 | downloadEnabled: video.downloadEnabled, |
264 | published: video.publishedAt.toISOString(), | 264 | published: video.publishedAt.toISOString(), |
265 | updated: video.updatedAt.toISOString(), | 265 | updated: video.updatedAt.toISOString(), |
266 | mediaType: 'text/markdown', | 266 | mediaType: 'text/markdown', |
diff --git a/server/models/video/video.ts b/server/models/video/video.ts index a2fe53fb9..a9baaf1da 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts | |||
@@ -600,7 +600,7 @@ export class VideoModel extends Model<VideoModel> { | |||
600 | 600 | ||
601 | @AllowNull(false) | 601 | @AllowNull(false) |
602 | @Column | 602 | @Column |
603 | downloadingEnabled: boolean | 603 | downloadEnabled: boolean |
604 | 604 | ||
605 | @AllowNull(false) | 605 | @AllowNull(false) |
606 | @Column | 606 | @Column |