Transaction is optional
This commit is contained in:
parent
57a0a9cde4
commit
ff0ea0cd8e
1 changed files with 1 additions and 1 deletions
|
@ -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: {
|
||||||
|
|
Loading…
Reference in a new issue