From 93cae47925e4dd68b7d34a41927b2740b4fab1b4 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 22 Jul 2019 15:40:13 +0200 Subject: Add client hooks --- shared/core-utils/plugins/hooks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shared/core-utils') 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 } -- cgit v1.2.3