diff options
author | Chocobozzz <me@florianbigard.com> | 2018-10-01 15:34:31 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-10-01 15:34:31 +0200 |
commit | d382f4e9175c1520835e41c3573471a84bcf1713 (patch) | |
tree | 477109294a60b60f89e9127f1f0f75c18e8ed612 /server/models/video/video-caption.ts | |
parent | 601527d7953a83d6ad08dbb2ed8ac02851beaf1e (diff) | |
download | PeerTube-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.ts | 3 |
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) { |