Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Transaction is optional

Chocobozzzff0ea0cd8e3b
diff --git a/server/models/video/video-caption.ts b/server/models/video/video-caption.ts
index b4918e519f..bbda0f3eeb 100644
--- a/server/models/video/video-caption.ts
+++ b/server/models/video/video-caption.ts
@@ -154,7 +154,7 @@ export class VideoCaptionModel extends Model<Partial<AttributesOnly<VideoCaption
return caption.save({ transaction })
}
- static listVideoCaptions (videoId: number, transaction: Transaction): Promise<MVideoCaptionVideo[]> {
+ static listVideoCaptions (videoId: number, transaction?: Transaction): Promise<MVideoCaptionVideo[]> {
const query = {
order: [ [ 'language', 'ASC' ] ] as OrderItem[],
where: {