Verified Commit ff0ea0cd authored by Chocobozzz's avatar Chocobozzz
Browse files

Transaction is optional

parent 57a0a9cd
Pipeline #424184 passed with stages
in 14 minutes and 30 seconds
......@@ -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: {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment