Transaction is optional
This commit is contained in:
parent
57a0a9cde4
commit
ff0ea0cd8e
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue