aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video-caption.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/video/video-caption.ts')
-rw-r--r--server/models/video/video-caption.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/models/video/video-caption.ts b/server/models/video/video-caption.ts
index 10ef46c14..b4f17b481 100644
--- a/server/models/video/video-caption.ts
+++ b/server/models/video/video-caption.ts
@@ -120,7 +120,8 @@ export class VideoCaptionModel extends Model<VideoCaptionModel> {
120 language 120 language
121 } 121 }
122 122
123 return VideoCaptionModel.upsert(values, { transaction }) 123 return VideoCaptionModel.upsert<VideoCaptionModel>(values, { transaction, returning: true })
124 .then(([ caption ]) => caption)
124 } 125 }
125 126
126 static listVideoCaptions (videoId: number) { 127 static listVideoCaptions (videoId: number) {