X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=shared%2Fcore-utils%2Fplugins%2Fhooks.ts;h=5405e0529ad0eeab00bc08ed6cee44d84a8b5ef6;hb=93cae47925e4dd68b7d34a41927b2740b4fab1b4;hp=3d59a7428d492901fd044b2a7bf1561dad24ef1f;hpb=587568e1cc0e33c023c1ac62dd28fef313285250;p=github%2FChocobozzz%2FPeerTube.git diff --git a/shared/core-utils/plugins/hooks.ts b/shared/core-utils/plugins/hooks.ts index 3d59a7428..5405e0529 100644 --- a/shared/core-utils/plugins/hooks.ts +++ b/shared/core-utils/plugins/hooks.ts @@ -29,7 +29,7 @@ async function internalRunHook (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 }