Merge pull request #1987 from automatisch/aut-1129

fix(webhook): add missing filter coverage
This commit is contained in:
Ömer Faruk Aydın
2024-07-26 10:13:40 +02:00
committed by GitHub

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;