1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 02:09:37 +02:00

Add client hooks

This commit is contained in:
Chocobozzz 2019-07-22 15:40:13 +02:00 committed by Chocobozzz
parent 587568e1cc
commit 93cae47925
31 changed files with 339 additions and 124 deletions

View file

@ -29,7 +29,7 @@ async function internalRunHook <T> (handler: Function, hookType: HookType, resul
}
if (hookType === HookType.ACTION) {
if (isCatchable(p)) p.catch(err => onError(err))
if (isCatchable(p)) p.catch((err: any) => onError(err))
return undefined
}