Browse Source

chore(nocodb): don't use `object` as a type

pull/5269/head
Wing-Kam Wong 2 years ago
parent
commit
0d34e78162
  1. 4
      packages/nocodb/src/lib/services/hook.svc.ts

4
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 populateSamplePayload from '../meta/helpers/populateSamplePayload';
import type { HookReqType, HookTestReqType } from 'nocodb-sdk'; import type { HookReqType, HookTestReqType } from 'nocodb-sdk';
function validateHookPayload(notificationJsonOrObject: string | object) { function validateHookPayload(
notificationJsonOrObject: string | Record<string, any>
) {
let notification: { type?: string } = {}; let notification: { type?: string } = {};
try { try {
notification = notification =

Loading…
Cancel
Save