diff options
Diffstat (limited to 'server/controllers/api/videos/update.ts')
-rw-r--r-- | server/controllers/api/videos/update.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/api/videos/update.ts b/server/controllers/api/videos/update.ts index 2cf8a5883..65a7321fd 100644 --- a/server/controllers/api/videos/update.ts +++ b/server/controllers/api/videos/update.ts | |||
@@ -62,7 +62,7 @@ async function updateVideo (req: express.Request, res: express.Response) { | |||
62 | try { | 62 | try { |
63 | const { videoInstanceUpdated, isNewVideo } = await sequelizeTypescript.transaction(async t => { | 63 | const { videoInstanceUpdated, isNewVideo } = await sequelizeTypescript.transaction(async t => { |
64 | // Refresh video since thumbnails to prevent concurrent updates | 64 | // Refresh video since thumbnails to prevent concurrent updates |
65 | const video = await VideoModel.loadAndPopulateAccountAndServerAndTags(videoFromReq.id, t) | 65 | const video = await VideoModel.loadFull(videoFromReq.id, t) |
66 | 66 | ||
67 | const sequelizeOptions = { transaction: t } | 67 | const sequelizeOptions = { transaction: t } |
68 | const oldVideoChannel = video.VideoChannel | 68 | const oldVideoChannel = video.VideoChannel |
@@ -212,5 +212,5 @@ async function updateTorrentsMetadataIfNeeded (video: MVideoFullLight, videoInfo | |||
212 | } | 212 | } |
213 | 213 | ||
214 | // Refresh video since files have changed | 214 | // Refresh video since files have changed |
215 | return VideoModel.loadAndPopulateAccountAndServerAndTags(video.id) | 215 | return VideoModel.loadFull(video.id) |
216 | } | 216 | } |