Skip to content

Commit 1baf72d

Browse files
committed
fix: update logic for triggers synced up with the rewrite
1 parent 2f091e4 commit 1baf72d

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

shared.go

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5983,6 +5983,13 @@ func hasTriggerChanged(newAction Trigger, oldAction Trigger) (string, bool) {
59835983
for _, oldParam := range oldAction.Parameters {
59845984
if param.Name == oldParam.Name {
59855985
if param.Value != oldParam.Value {
5986+
// if the changed param value is in WEBHOOK, we should not consider it as a change
5987+
// if it is in SUBFLOW, we will distribute subflow and user input,
5988+
// it needs to be handled a certain way.
5989+
if newAction.TriggerType == "WEBHOOK" {
5990+
continue
5991+
}
5992+
59865993
return "param_value", true
59875994
}
59885995

@@ -6350,7 +6357,11 @@ func diffWorkflows(oldWorkflow Workflow, parentWorkflow Workflow, update bool) {
63506357
continue
63516358
}
63526359

6353-
if newAction.ID != oldAction.ID {
6360+
// if newAction.ID != oldAction.ID {
6361+
// continue
6362+
// }
6363+
6364+
if newAction.ReplacementForTrigger != oldAction.ID {
63546365
continue
63556366
}
63566367

0 commit comments

Comments
 (0)