|
|
|
@ -307,17 +307,16 @@ export async function invokeWebhook(
|
|
|
|
|
const data = newData[i]; |
|
|
|
|
const prevData = prevData ? prevData[i] : null; |
|
|
|
|
|
|
|
|
|
if (prevData) { |
|
|
|
|
// if condition is satisfied for prevData then return
|
|
|
|
|
if ( |
|
|
|
|
await validateCondition( |
|
|
|
|
prevData && |
|
|
|
|
(await validateCondition( |
|
|
|
|
testFilters || (await hook.getFilters()), |
|
|
|
|
prevData, |
|
|
|
|
) |
|
|
|
|
)) |
|
|
|
|
) { |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if ( |
|
|
|
|
await validateCondition( |
|
|
|
|
testFilters || (await hook.getFilters()), |
|
|
|
@ -332,17 +331,16 @@ export async function invokeWebhook(
|
|
|
|
|
} |
|
|
|
|
newData = filteredData; |
|
|
|
|
} else { |
|
|
|
|
if (prevData) { |
|
|
|
|
// if condition is satisfied for prevData then return
|
|
|
|
|
if ( |
|
|
|
|
await validateCondition( |
|
|
|
|
prevData && |
|
|
|
|
(await validateCondition( |
|
|
|
|
testFilters || (await hook.getFilters()), |
|
|
|
|
prevData, |
|
|
|
|
) |
|
|
|
|
)) |
|
|
|
|
) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if ( |
|
|
|
|
!(await validateCondition( |
|
|
|
|
testFilters || (await hook.getFilters()), |
|
|
|
|