Browse Source

fix: webhook payload corrections

pull/9827/head
Pranav C 2 weeks ago
parent
commit
a93fa3e678
  1. 2
      packages/nocodb/src/helpers/populateSamplePayload.ts
  2. 2
      packages/nocodb/src/services/hooks.service.ts

2
packages/nocodb/src/helpers/populateSamplePayload.ts

@ -77,8 +77,6 @@ export async function populateSamplePayloadV2(
data: { data: {
table_id: model.id, table_id: model.id,
table_name: model.title, table_name: model.title,
view_id: model.views[0].id,
view_name: model.views[0].title,
}, },
}; };

2
packages/nocodb/src/services/hooks.service.ts

@ -225,7 +225,7 @@ export class HooksService {
model: model, model: model,
view: null, view: null,
prevData: null, prevData: null,
newData: data, newData: data.rows,
user: user, user: user,
testFilters: (hook as any)?.filters, testFilters: (hook as any)?.filters,
throwErrorOnFailure: true, throwErrorOnFailure: true,

Loading…
Cancel
Save