From a93fa3e6782ce2bfb2b093b1f19677ae928e0217 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Fri, 15 Nov 2024 10:52:01 +0000 Subject: [PATCH] fix: webhook payload corrections --- packages/nocodb/src/helpers/populateSamplePayload.ts | 2 -- packages/nocodb/src/services/hooks.service.ts | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/nocodb/src/helpers/populateSamplePayload.ts b/packages/nocodb/src/helpers/populateSamplePayload.ts index 16b1d29616..81459273ab 100644 --- a/packages/nocodb/src/helpers/populateSamplePayload.ts +++ b/packages/nocodb/src/helpers/populateSamplePayload.ts @@ -77,8 +77,6 @@ export async function populateSamplePayloadV2( data: { table_id: model.id, table_name: model.title, - view_id: model.views[0].id, - view_name: model.views[0].title, }, }; diff --git a/packages/nocodb/src/services/hooks.service.ts b/packages/nocodb/src/services/hooks.service.ts index 1bbb381a74..fc75923a4a 100644 --- a/packages/nocodb/src/services/hooks.service.ts +++ b/packages/nocodb/src/services/hooks.service.ts @@ -225,7 +225,7 @@ export class HooksService { model: model, view: null, prevData: null, - newData: data, + newData: data.rows, user: user, testFilters: (hook as any)?.filters, throwErrorOnFailure: true,