mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-25 04:45:07 +00:00
@@ -96,9 +96,9 @@ export async function populateSamplePayloadV2(
|
||||
const samplePayload = {
|
||||
type: `${scope}.after.${operation}`,
|
||||
id: uuidv4(),
|
||||
...(includeUser &&
|
||||
isEE &&
|
||||
sampleUser && { user: sanitizeUserForHook(sampleUser) }),
|
||||
...(includeUser && isEE && sampleUser
|
||||
? { user: sanitizeUserForHook(sampleUser) }
|
||||
: {}),
|
||||
data: {
|
||||
table_id: model.id,
|
||||
table_name: model.title,
|
||||
|
||||
@@ -416,7 +416,9 @@ export function constructWebHookData(
|
||||
return {
|
||||
type: `${scope}.${hook.event}.${hook.operation}`,
|
||||
id: uuidv4(),
|
||||
...(includeUser && isEE && user && { user: sanitizeUserForHook(user) }),
|
||||
...(includeUser && isEE && user
|
||||
? { user: sanitizeUserForHook(user) }
|
||||
: {}),
|
||||
data: {
|
||||
table_id: model.id,
|
||||
table_name: model.title,
|
||||
|
||||
Reference in New Issue
Block a user