Skip to content

Commit f5a83d5

Browse files
committed
fix: cannot create if-then
1 parent 7953a2f commit f5a83d5

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

packages/backend/src/graphql/mutations/create-step.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ const createStep: MutationResolvers['createStep'] = async (
9292

9393
return {
9494
...step,
95+
flowId: flow.id,
9596
flow: {
9697
updatedAt: updatedFlow.updatedAt,
9798
},

packages/backend/src/graphql/schema.graphql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,7 @@ type Step {
703703
executionSteps: [ExecutionStep]
704704
config: StepConfig
705705
createdAt: String
706+
flowId: String
706707
}
707708

708709
type StepConfig {

packages/frontend/src/graphql/mutations/create-step.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export const CREATE_STEP = gql`
1010
parameters
1111
position
1212
status
13+
flowId
1314
connection {
1415
id
1516
}

packages/frontend/src/graphql/mutations/update-step.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export const UPDATE_STEP = graphql(`
1111
parameters
1212
status
1313
position
14+
flowId
1415
connection {
1516
id
1617
}

packages/frontend/src/graphql/queries/get-flow.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export const FLOW_FIELDS = gql`
1616
status
1717
position
1818
createdAt
19+
flowId
1920
connection {
2021
id
2122
verified

0 commit comments

Comments
 (0)