Prefer using req instead of body
We'll deprecate body in the future
This commit is contained in:
parent
0adbc73eb9
commit
7ce6574989
|
@ -793,10 +793,10 @@ async function register ({
|
||||||
// Store data associated to this video
|
// Store data associated to this video
|
||||||
registerHook({
|
registerHook({
|
||||||
target: 'action:api.video.updated',
|
target: 'action:api.video.updated',
|
||||||
handler: ({ video, body }) => {
|
handler: ({ video, req }) => {
|
||||||
if (!body.pluginData) return
|
if (!req.body.pluginData) return
|
||||||
|
|
||||||
const value = body.pluginData[fieldName]
|
const value = req.body.pluginData[fieldName]
|
||||||
if (!value) return
|
if (!value) return
|
||||||
|
|
||||||
storageManager.storeData(fieldName + '-' + video.id, value)
|
storageManager.storeData(fieldName + '-' + video.id, value)
|
||||||
|
|
Loading…
Reference in New Issue