diff options
author | Chocobozzz <me@florianbigard.com> | 2021-06-09 17:06:56 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-06-09 17:06:56 +0200 |
commit | ff0ea0cd8e3b0ecad445672deb75b193babeddc2 (patch) | |
tree | cb203c909591f7e183fad907e2066eea13cd6cf8 /server/models/video/video-caption.ts | |
parent | 57a0a9cde4760314d9b1fdd920e0b4a180a9925e (diff) | |
download | PeerTube-ff0ea0cd8e3b0ecad445672deb75b193babeddc2.tar.gz PeerTube-ff0ea0cd8e3b0ecad445672deb75b193babeddc2.tar.zst PeerTube-ff0ea0cd8e3b0ecad445672deb75b193babeddc2.zip |
Transaction is optional
Diffstat (limited to 'server/models/video/video-caption.ts')
-rw-r--r-- | server/models/video/video-caption.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/video/video-caption.ts b/server/models/video/video-caption.ts index b4918e519..bbda0f3ee 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 | |||
154 | return caption.save({ transaction }) | 154 | return caption.save({ transaction }) |
155 | } | 155 | } |
156 | 156 | ||
157 | static listVideoCaptions (videoId: number, transaction: Transaction): Promise<MVideoCaptionVideo[]> { | 157 | static listVideoCaptions (videoId: number, transaction?: Transaction): Promise<MVideoCaptionVideo[]> { |
158 | const query = { | 158 | const query = { |
159 | order: [ [ 'language', 'ASC' ] ] as OrderItem[], | 159 | order: [ [ 'language', 'ASC' ] ] as OrderItem[], |
160 | where: { | 160 | where: { |