Skip to content

Commit

Permalink
fix: distinguish test webhooks to run when flow not published/enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
islamaf committed May 10, 2024
1 parent 1f4d690 commit cda36ae
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 cda36ae

Please sign in to comment.