Skip to content

Commit

Permalink
Fix: keep the workflow data structure in MongoDB (kubevela#5276)
Browse files Browse the repository at this point in the history
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>

Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
  • Loading branch information
barnettZQG committed Jan 30, 2023
1 parent 76cde15 commit 7587f09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/apiserver/domain/model/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ type Workflow struct {

// WorkflowStep defines how to execute a workflow step.
type WorkflowStep struct {
WorkflowStepBase `json:",inline"`
WorkflowStepBase `json:",inline" bson:",inline"`
SubSteps []WorkflowStepBase `json:"subSteps,omitempty"`
}

Expand Down Expand Up @@ -128,7 +128,7 @@ type WorkflowRecord struct {

// WorkflowStepStatus is the workflow step status database model
type WorkflowStepStatus struct {
StepStatus `json:",inline"`
StepStatus `json:",inline" bson:",inline"`
SubStepsStatus []StepStatus `json:"subSteps,omitempty"`
}

Expand Down

0 comments on commit 7587f09

Please sign in to comment.