]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/core-utils/plugins/hooks.ts
Add client hooks
[github/Chocobozzz/PeerTube.git] / shared / core-utils / plugins / hooks.ts
index 3d59a7428d492901fd044b2a7bf1561dad24ef1f..5405e0529ad0eeab00bc08ed6cee44d84a8b5ef6 100644 (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
     }