From ff0ea0cd8e3b0ecad445672deb75b193babeddc2 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 9 Jun 2021 17:06:56 +0200 Subject: [PATCH] Transaction is optional --- server/models/video/video-caption.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/models/video/video-caption.ts b/server/models/video/video-caption.ts index b4918e519..bbda0f3ee 100644 --- a/server/models/video/video-caption.ts +++ b/server/models/video/video-caption.ts @@ -154,7 +154,7 @@ export class VideoCaptionModel extends Model { + static listVideoCaptions (videoId: number, transaction?: Transaction): Promise { const query = { order: [ [ 'language', 'ASC' ] ] as OrderItem[], where: {