mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2026-09-03 20:53:09 -05:00
Add client hooks
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user