diff options
Diffstat (limited to 'server/controllers/api')
-rw-r--r-- | server/controllers/api/videos/index.ts | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/server/controllers/api/videos/index.ts b/server/controllers/api/videos/index.ts index 58ab72370..2447c1288 100644 --- a/server/controllers/api/videos/index.ts +++ b/server/controllers/api/videos/index.ts | |||
@@ -347,12 +347,13 @@ async function updateVideo (req: express.Request, res: express.Response) { | |||
347 | if (previewModel) await videoInstanceUpdated.addAndSaveThumbnail(previewModel, t) | 347 | if (previewModel) await videoInstanceUpdated.addAndSaveThumbnail(previewModel, t) |
348 | 348 | ||
349 | // Video tags update? | 349 | // Video tags update? |
350 | await setVideoTags({ | 350 | if (videoInfoToUpdate.tags !== undefined) { |
351 | video: videoInstanceUpdated, | 351 | await setVideoTags({ |
352 | tags: videoInfoToUpdate.tags, | 352 | video: videoInstanceUpdated, |
353 | transaction: t, | 353 | tags: videoInfoToUpdate.tags, |
354 | defaultValue: videoInstanceUpdated.Tags | 354 | transaction: t |
355 | }) | 355 | }) |
356 | } | ||
356 | 357 | ||
357 | // Video channel update? | 358 | // Video channel update? |
358 | if (res.locals.videoChannel && videoInstanceUpdated.channelId !== res.locals.videoChannel.id) { | 359 | if (res.locals.videoChannel && videoInstanceUpdated.channelId !== res.locals.videoChannel.id) { |