Skip to content

Commit

Permalink
fix(api): check node is Root (#3717)
Browse files Browse the repository at this point in the history
  • Loading branch information
sguiheux authored and fsamin committed Dec 11, 2018
1 parent ab0e5a0 commit 222302a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/api/workflow/process_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ func processNode(ctx context.Context, db gorp.SqlExecutor, store cache.Store, pr
}
}

isRoot := n.ID == wr.Workflow.Root.ID
isRoot := n.ID == wr.Workflow.WorkflowData.Node.ID

gitValues := currentGitValues
if previousGitValues[tagGitURL] == currentGitValues[tagGitURL] || previousGitValues[tagGitHTTPURL] == currentGitValues[tagGitHTTPURL] {
Expand Down

0 comments on commit 222302a

Please sign in to comment.