From c2e5d9ba4d5445f0c8dd1ecabf4f4c19ad32636d Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Fri, 17 Mar 2023 14:22:03 +0800 Subject: [PATCH] fix(nocodb): remove as any in Hook.update param --- packages/nocodb/src/lib/services/hook.svc.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/nocodb/src/lib/services/hook.svc.ts b/packages/nocodb/src/lib/services/hook.svc.ts index 4c166f7d99..2964349bd1 100644 --- a/packages/nocodb/src/lib/services/hook.svc.ts +++ b/packages/nocodb/src/lib/services/hook.svc.ts @@ -56,8 +56,7 @@ export async function hookUpdate(param: { hookId: string; hook: HookReqType }) { validateHookPayload(param.hook.notification); - // todo: correction in swagger - return await Hook.update(param.hookId, param.hook as any); + return await Hook.update(param.hookId, param.hook); } export async function hookTest(param: {