aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models
diff options
context:
space:
mode:
Diffstat (limited to 'server/models')
-rw-r--r--server/models/video/video.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index 8f561116b..44aaa24ef 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -1886,7 +1886,7 @@ export class VideoModel extends Model<Partial<AttributesOnly<VideoModel>>> {
1886 return Array.isArray(this.VideoFiles) === true && this.VideoFiles.length !== 0 1886 return Array.isArray(this.VideoFiles) === true && this.VideoFiles.length !== 0
1887 } 1887 }
1888 1888
1889 async addAndSaveThumbnail (thumbnail: MThumbnail, transaction: Transaction) { 1889 async addAndSaveThumbnail (thumbnail: MThumbnail, transaction?: Transaction) {
1890 thumbnail.videoId = this.id 1890 thumbnail.videoId = this.id
1891 1891
1892 const savedThumbnail = await thumbnail.save({ transaction }) 1892 const savedThumbnail = await thumbnail.save({ transaction })