diff options
Diffstat (limited to 'server/middlewares/validators/videos')
-rw-r--r-- | server/middlewares/validators/videos/videos.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/middlewares/validators/videos/videos.ts b/server/middlewares/validators/videos/videos.ts index cb2c071ba..5593ede64 100644 --- a/server/middlewares/validators/videos/videos.ts +++ b/server/middlewares/validators/videos/videos.ts | |||
@@ -444,8 +444,9 @@ async function isVideoAccepted (req: express.Request, res: express.Response, vid | |||
444 | videoFile, | 444 | videoFile, |
445 | user: res.locals.oauth.token.User | 445 | user: res.locals.oauth.token.User |
446 | } | 446 | } |
447 | const acceptedResult = await Hooks.wrapObject( | 447 | const acceptedResult = await Hooks.wrapFun( |
448 | isLocalVideoAccepted(acceptParameters), | 448 | isLocalVideoAccepted, |
449 | acceptParameters, | ||
449 | 'filter:api.video.upload.accept.result' | 450 | 'filter:api.video.upload.accept.result' |
450 | ) | 451 | ) |
451 | 452 | ||