From 28dfb44b145c537aba07ae73cb1287f25532022a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 8 Jun 2021 17:29:45 +0200 Subject: Try to speed up AP update transaction --- server/models/video/video.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/models/video') 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>> { return Array.isArray(this.VideoFiles) === true && this.VideoFiles.length !== 0 } - async addAndSaveThumbnail (thumbnail: MThumbnail, transaction: Transaction) { + async addAndSaveThumbnail (thumbnail: MThumbnail, transaction?: Transaction) { thumbnail.videoId = this.id const savedThumbnail = await thumbnail.save({ transaction }) -- cgit v1.2.3