Browse Source

fix(nocodb): include missing payload & triggered_by in hookLog

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

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

@ -370,10 +370,12 @@ export async function invokeWebhook(
hookLog = { hookLog = {
...hook, ...hook,
type: notification.type, type: notification.type,
payload: JSON.stringify(notification?.payload),
fk_hook_id: hook.id, fk_hook_id: hook.id,
error_code: e.error_code, error_code: e.error_code,
error_message: e.message, error_message: e.message,
error: JSON.stringify(e), error: JSON.stringify(e),
triggered_by: user?.email,
}; };
if (throwErrorOnFailure) throw e; if (throwErrorOnFailure) throw e;
} finally { } finally {

Loading…
Cancel
Save