aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-08-20 16:18:16 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-08-21 15:39:51 +0200
commit7294aab0c879ef96c0fde15c389a2c4c1463d3c7 (patch)
treebad1176720ee04266eba5470e9956e3a7871e349 /server/controllers/api/videos
parentf95628636b6ccdf3eae2449ca718e075b072f678 (diff)
downloadPeerTube-7294aab0c879ef96c0fde15c389a2c4c1463d3c7.tar.gz
PeerTube-7294aab0c879ef96c0fde15c389a2c4c1463d3c7.tar.zst
PeerTube-7294aab0c879ef96c0fde15c389a2c4c1463d3c7.zip
Add ability to set custom field to video form
Diffstat (limited to 'server/controllers/api/videos')
-rw-r--r--server/controllers/api/videos/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/api/videos/index.ts b/server/controllers/api/videos/index.ts
index c05acfd2f..15b6f214f 100644
--- a/server/controllers/api/videos/index.ts
+++ b/server/controllers/api/videos/index.ts
@@ -414,7 +414,7 @@ async function updateVideo (req: express.Request, res: express.Response) {
414 Notifier.Instance.notifyOnNewVideoIfNeeded(videoInstanceUpdated) 414 Notifier.Instance.notifyOnNewVideoIfNeeded(videoInstanceUpdated)
415 } 415 }
416 416
417 Hooks.runAction('action:api.video.updated', { video: videoInstanceUpdated }) 417 Hooks.runAction('action:api.video.updated', { video: videoInstanceUpdated, body: req.body })
418 } catch (err) { 418 } catch (err) {
419 // Force fields we want to update 419 // Force fields we want to update
420 // If the transaction is retried, sequelize will think the object has not changed 420 // If the transaction is retried, sequelize will think the object has not changed