fix(webhook): add missing filter coverage

This commit is contained in:
Ali BARIN
2024-07-24 16:01:07 +00:00
parent bdd8da98c4
commit ba14481151

View File

@@ -63,6 +63,8 @@ export default async (flowId, request, response) => {
});
if (testRun) {
response.status(204).end();
// in case of testing, we do not process the whole process.
continue;
}
@@ -74,6 +76,12 @@ export default async (flowId, request, response) => {
executionId,
});
if (actionStep.appKey === 'filter' && !actionExecutionStep.dataOut) {
response.status(422).end();
break;
}
if (actionStep.key === 'respondWith' && !response.headersSent) {
const { headers, statusCode, body } = actionExecutionStep.dataOut;