From 5aba390dd19dee10f3ad5ec0835a3d2e05df1fc4 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Sat, 1 Apr 2023 17:49:50 +0800 Subject: [PATCH] fix(nocodb): revise default hooklog response --- .../nocodb/src/lib/meta/helpers/webhookHelpers.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/packages/nocodb/src/lib/meta/helpers/webhookHelpers.ts b/packages/nocodb/src/lib/meta/helpers/webhookHelpers.ts index 0989089186..f382c5cd5f 100644 --- a/packages/nocodb/src/lib/meta/helpers/webhookHelpers.ts +++ b/packages/nocodb/src/lib/meta/helpers/webhookHelpers.ts @@ -375,7 +375,18 @@ export async function invokeWebhook( fk_hook_id: hook.id, type: notification.type, payload: JSON.stringify(notification?.payload), - response: JSON.stringify(res), + response: JSON.stringify({ + status: res.status, + statusText: res.statusText, + headers: res.headers, + config: { + url: res.config.url, + method: res.config.method, + data: res.config.data, + headers: res.config.headers, + params: res.config.params, + }, + }), triggered_by: user?.email, }; }