aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video-caption.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-10-01 15:34:31 +0200
committerChocobozzz <me@florianbigard.com>2018-10-01 15:34:31 +0200
commitd382f4e9175c1520835e41c3573471a84bcf1713 (patch)
tree477109294a60b60f89e9127f1f0f75c18e8ed612 /server/models/video/video-caption.ts
parent601527d7953a83d6ad08dbb2ed8ac02851beaf1e (diff)
downloadPeerTube-d382f4e9175c1520835e41c3573471a84bcf1713.tar.gz
PeerTube-d382f4e9175c1520835e41c3573471a84bcf1713.tar.zst
PeerTube-d382f4e9175c1520835e41c3573471a84bcf1713.zip
Fix refreshing external video attributes
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) {