diff --git a/packages/nocodb/src/lib/services/hook.svc.ts b/packages/nocodb/src/lib/services/hook.svc.ts index 284892f0b6..4c166f7d99 100644 --- a/packages/nocodb/src/lib/services/hook.svc.ts +++ b/packages/nocodb/src/lib/services/hook.svc.ts @@ -6,7 +6,9 @@ import { invokeWebhook } from '../meta/helpers/webhookHelpers'; import populateSamplePayload from '../meta/helpers/populateSamplePayload'; import type { HookReqType, HookTestReqType } from 'nocodb-sdk'; -function validateHookPayload(notificationJsonOrObject: string | object) { +function validateHookPayload( + notificationJsonOrObject: string | Record +) { let notification: { type?: string } = {}; try { notification =