Skip to content

Commit

Permalink
Merge pull request #4662 from activepieces/fix/test-webhook-consumer
Browse files Browse the repository at this point in the history
fix(webhook): distinguish test webhooks to run when flow not published/enabled
  • Loading branch information
abuaboud committed May 10, 2024
2 parents 1f4d690 + cb75a32 commit da21aa8
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -17,7 +17,7 @@ export const webhookConsumer = {
})
return
}
const isPublishedAndEnabled = flow.status !== FlowStatus.ENABLED || isNil(flow.publishedVersionId)
const isPublishedAndEnabled = (flow.status !== FlowStatus.ENABLED || isNil(flow.publishedVersionId)) && !simulate
if (isPublishedAndEnabled) {
await stopAndReply(data, {
status: StatusCodes.NOT_FOUND,
Expand Down

0 comments on commit da21aa8

Please sign in to comment.