Transaction is optional

This commit is contained in:
Chocobozzz 2021-06-09 17:06:56 +02:00
parent 57a0a9cde4
commit ff0ea0cd8e
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ export class VideoCaptionModel extends Model<Partial<AttributesOnly<VideoCaption
return caption.save({ transaction }) return caption.save({ transaction })
} }
static listVideoCaptions (videoId: number, transaction: Transaction): Promise<MVideoCaptionVideo[]> { static listVideoCaptions (videoId: number, transaction?: Transaction): Promise<MVideoCaptionVideo[]> {
const query = { const query = {
order: [ [ 'language', 'ASC' ] ] as OrderItem[], order: [ [ 'language', 'ASC' ] ] as OrderItem[],
where: { where: {