Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

format for view hook

Fendy Heryanto4e3b22e7d5d3
diff --git a/packages/nocodb/src/utils/webhook-invoker.ts b/packages/nocodb/src/utils/webhook-invoker.ts
index 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 data
if (['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) }