aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video-caption.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/video/video-caption.ts')
-rw-r--r--server/models/video/video-caption.ts2
1 files changed, 1 insertions, 1 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()) {