|
|
@ -1,6 +1,7 @@ |
|
|
|
import Handlebars from 'handlebars'; |
|
|
|
import Handlebars from 'handlebars'; |
|
|
|
import { v4 as uuidv4 } from 'uuid'; |
|
|
|
import { v4 as uuidv4 } from 'uuid'; |
|
|
|
import { Filter, HookLog } from '../models'; |
|
|
|
import { Filter, HookLog } from '../models'; |
|
|
|
|
|
|
|
import Noco from '../Noco'; |
|
|
|
import NcPluginMgrv2 from './NcPluginMgrv2'; |
|
|
|
import NcPluginMgrv2 from './NcPluginMgrv2'; |
|
|
|
import type { Column, FormView, Hook, Model, View } from '../models'; |
|
|
|
import type { Column, FormView, Hook, Model, View } from '../models'; |
|
|
|
import type { HookLogType } from 'nocodb-sdk'; |
|
|
|
import type { HookLogType } from 'nocodb-sdk'; |
|
|
@ -135,7 +136,7 @@ export async function validateCondition(filters: Filter[], data: any) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export function constructWebHookData(hook, model, view, prevData, newData) { |
|
|
|
export function constructWebHookData(hook, model, view, prevData, newData) { |
|
|
|
if (hook.version === 'v2') { |
|
|
|
if (hook.version === 'v2' && !Noco.isEE()) { |
|
|
|
// extend in the future - currently only support records
|
|
|
|
// extend in the future - currently only support records
|
|
|
|
const scope = 'records'; |
|
|
|
const scope = 'records'; |
|
|
|
|
|
|
|
|
|
|
|