From 89a51be837e75ac4969c476d11f1567c89549294 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Mon, 27 Mar 2023 13:14:33 +0800 Subject: [PATCH] fix(nocodb): include missing payload & triggered_by in hookLog --- packages/nocodb/src/lib/meta/helpers/webhookHelpers.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/nocodb/src/lib/meta/helpers/webhookHelpers.ts b/packages/nocodb/src/lib/meta/helpers/webhookHelpers.ts index 19fe63c4a7..3639b43eae 100644 --- a/packages/nocodb/src/lib/meta/helpers/webhookHelpers.ts +++ b/packages/nocodb/src/lib/meta/helpers/webhookHelpers.ts @@ -370,10 +370,12 @@ export async function invokeWebhook( hookLog = { ...hook, type: notification.type, + payload: JSON.stringify(notification?.payload), fk_hook_id: hook.id, error_code: e.error_code, error_message: e.message, error: JSON.stringify(e), + triggered_by: user?.email, }; if (throwErrorOnFailure) throw e; } finally {