π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
format for view hook
Fendy Heryanto4e3b22e7d5d3
diff --git a/packages/nocodb/src/utils/webhook-invoker.ts b/packages/nocodb/src/utils/webhook-invoker.tsindex d50b83f0b0..bfad2c7aee 100644--- a/packages/nocodb/src/utils/webhook-invoker.ts+++ b/packages/nocodb/src/utils/webhook-invoker.ts@@ -252,7 +252,7 @@ export class WebhookInvoker {// TODO: construct webhook view dataif (['v2', 'v3'].includes(hook.version)) {// extend in the future - currently only support records- const scope = ['after', 'manual'].includes(hook.event) ? 'records.' : '';+ const scope = 'records';const isBulkInsert =hook.version === 'v2' && (hook.operation as any) === 'bulkInsert';@@ -260,7 +260,7 @@ export class WebhookInvoker {const includeUser = parseMetaProp(hook, 'notification')?.include_user;return {- type: `${scope}${hook.event}.${hook.operation}`,+ type: `${scope}.${hook.event}.${hook.operation}`,id: uuidv4(),...(includeUser && isEE && user? { user: sanitizeUserForHook(user) }