diff options
Diffstat (limited to 'server/models/video')
-rw-r--r-- | server/models/video/video-caption.ts | 2 | ||||
-rw-r--r-- | server/models/video/video-channel.ts | 2 | ||||
-rw-r--r-- | server/models/video/video.ts | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/server/models/video/video-caption.ts b/server/models/video/video-caption.ts index ad5801768..eeb2a4afd 100644 --- a/server/models/video/video-caption.ts +++ b/server/models/video/video-caption.ts | |||
@@ -79,7 +79,7 @@ export class VideoCaptionModel extends Model<VideoCaptionModel> { | |||
79 | @BeforeDestroy | 79 | @BeforeDestroy |
80 | static async removeFiles (instance: VideoCaptionModel) { | 80 | static async removeFiles (instance: VideoCaptionModel) { |
81 | if (!instance.Video) { | 81 | if (!instance.Video) { |
82 | instance.Video = await instance.$get('Video') as VideoModel | 82 | instance.Video = await instance.$get('Video') |
83 | } | 83 | } |
84 | 84 | ||
85 | if (instance.isOwned()) { | 85 | if (instance.isOwned()) { |
diff --git a/server/models/video/video-channel.ts b/server/models/video/video-channel.ts index 05545bd9d..e10adcb3a 100644 --- a/server/models/video/video-channel.ts +++ b/server/models/video/video-channel.ts | |||
@@ -249,7 +249,7 @@ export class VideoChannelModel extends Model<VideoChannelModel> { | |||
249 | @BeforeDestroy | 249 | @BeforeDestroy |
250 | static async sendDeleteIfOwned (instance: VideoChannelModel, options) { | 250 | static async sendDeleteIfOwned (instance: VideoChannelModel, options) { |
251 | if (!instance.Actor) { | 251 | if (!instance.Actor) { |
252 | instance.Actor = await instance.$get('Actor', { transaction: options.transaction }) as ActorModel | 252 | instance.Actor = await instance.$get('Actor', { transaction: options.transaction }) |
253 | } | 253 | } |
254 | 254 | ||
255 | if (instance.Actor.isOwned()) { | 255 | if (instance.Actor.isOwned()) { |
diff --git a/server/models/video/video.ts b/server/models/video/video.ts index cd3245ee4..ac8c81ddf 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts | |||
@@ -1061,7 +1061,7 @@ export class VideoModel extends Model<VideoModel> { | |||
1061 | 1061 | ||
1062 | if (instance.isOwned()) { | 1062 | if (instance.isOwned()) { |
1063 | if (!Array.isArray(instance.VideoFiles)) { | 1063 | if (!Array.isArray(instance.VideoFiles)) { |
1064 | instance.VideoFiles = await instance.$get('VideoFiles') as VideoFileModel[] | 1064 | instance.VideoFiles = await instance.$get('VideoFiles') |
1065 | } | 1065 | } |
1066 | 1066 | ||
1067 | // Remove physical files and torrents | 1067 | // Remove physical files and torrents |