Browse Source

feat(nocodb): include fk_hook_id in hook log

pull/5349/head
Wing-Kam Wong 2 years ago
parent
commit
c7a3002170
  1. 2
      packages/nocodb/src/lib/meta/helpers/webhookHelpers.ts

2
packages/nocodb/src/lib/meta/helpers/webhookHelpers.ts

@ -319,6 +319,7 @@ export async function invokeWebhook(
hookLog = { hookLog = {
...hook, ...hook,
fk_hook_id: hook.id,
type: notification.type, type: notification.type,
payload: JSON.stringify(notification?.payload), payload: JSON.stringify(notification?.payload),
response: JSON.stringify({ response: JSON.stringify({
@ -352,6 +353,7 @@ export async function invokeWebhook(
hookLog = { hookLog = {
...hook, ...hook,
fk_hook_id: hook.id,
type: notification.type, type: notification.type,
payload: JSON.stringify(notification?.payload), payload: JSON.stringify(notification?.payload),
response: JSON.stringify(res), response: JSON.stringify(res),

Loading…
Cancel
Save