nil except
This commit is contained in:
parent
9da3a7c3e6
commit
d0e2778246
@ -51,7 +51,7 @@ func (wfa *workflowMongoAccessor) execution(realData *Workflow, delete bool) (in
|
||||
obj := &workflow_execution.WorkflowExecution{
|
||||
ExecDate: &s,
|
||||
EndDate: realData.Schedule.End,
|
||||
State: workflow_execution.SCHEDULED,
|
||||
State: workflow_execution.SCHEDULED.EnumIndex(),
|
||||
WorkflowID: realData.UUID,
|
||||
}
|
||||
accessor.StoreOne(obj)
|
||||
@ -61,7 +61,7 @@ func (wfa *workflowMongoAccessor) execution(realData *Workflow, delete bool) (in
|
||||
obj := &workflow_execution.WorkflowExecution{
|
||||
ExecDate: realData.Schedule.Start,
|
||||
EndDate: realData.Schedule.End,
|
||||
State: workflow_execution.SCHEDULED,
|
||||
State: workflow_execution.SCHEDULED.EnumIndex(),
|
||||
WorkflowID: realData.UUID,
|
||||
}
|
||||
accessor.StoreOne(obj)
|
||||
|
@ -41,7 +41,7 @@ type WorkflowExecution struct {
|
||||
UUID string `json:"id,omitempty" bson:"id,omitempty" validate:"required"`
|
||||
ExecDate *time.Time `json:"execution_date,omitempty" bson:"execution_date,omitempty" validate:"required"`
|
||||
EndDate *time.Time `json:"end_date,omitempty" bson:"end_date,omitempty"`
|
||||
State ScheduledType `json:"state,omitempty" bson:"state,omitempty" `
|
||||
State int `json:"state,omitempty" bson:"state,omitempty" `
|
||||
WorkflowID string `json:"workflow_id" bson:"workflow_id,omitempty"`
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user