diff options
author | Chocobozzz <me@florianbigard.com> | 2019-07-19 17:30:41 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-07-24 10:58:16 +0200 |
commit | 89cd12756035a146bbcc4db78cd3cd64f2f3d88d (patch) | |
tree | 896cd9fca1e0baa969b1f7a5b398ec1602761661 /server/middlewares | |
parent | 09071200c73f5358e1d0bfb61a274e4f2c4ec52b (diff) | |
download | PeerTube-89cd12756035a146bbcc4db78cd3cd64f2f3d88d.tar.gz PeerTube-89cd12756035a146bbcc4db78cd3cd64f2f3d88d.tar.zst PeerTube-89cd12756035a146bbcc4db78cd3cd64f2f3d88d.zip |
Add hook filters tests
Diffstat (limited to 'server/middlewares')
-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 | ||