Skip to content

Commit 329d29d

Browse files
authored
Tweak triggers to fix merging in lightning (#1092)
* fix for triggers in lightning * changeset * trigger
1 parent 07861b0 commit 329d29d

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.changeset/soft-drinks-try.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@openfn/project': patch
3+
---
4+
5+
Include `source_trigger_id` in generated workflows (for lightning compatibility)

packages/project/src/serialize/to-app-state.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ const mapWorkflow = (workflow) => {
9494
id: rules.openfn?.uuid ?? randomUUID(),
9595
target_job_id: lookup[next],
9696
enabled: !rules.disabled,
97+
source_trigger_id: null, // lightning complains if this isn't set, even if its falsy :(
9798
};
9899

99100
if (isTrigger) {

0 commit comments

Comments
 (0)