Skip to content

Commit

Permalink
Merge pull request activepieces#5166 from activepieces/notify-user-fa…
Browse files Browse the repository at this point in the history
…ilures

chore: fix skipping updateFailureCount
  • Loading branch information
abuaboud authored Jul 23, 2024
2 parents d70831a + 2f24df4 commit 1bc2e18
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/server/api/src/app/flows/flow/flow.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,11 @@ export const flowService = {
id: flowId,
projectId,
})

const { schedule } = flow
if (isNil(schedule)) {
const skipUpdateFlowCount = isNil(schedule) || flow.status === FlowStatus.DISABLED

if ( skipUpdateFlowCount ) {
return
}
const newFailureCount = success ? 0 : (schedule.failureCount ?? 0) + 1
Expand Down

0 comments on commit 1bc2e18

Please sign in to comment.