diff --git a/pkg/wfexec/prompt.go b/pkg/wfexec/prompt.go index 01e09960f..3d2828f46 100644 --- a/pkg/wfexec/prompt.go +++ b/pkg/wfexec/prompt.go @@ -24,7 +24,7 @@ type ( PendingPrompt struct { Ref string `json:"ref"` SessionID uint64 `json:"sessionID,string"` - CreatedAt time.Time `json:"created"` + CreatedAt time.Time `json:"createdAt"` StateID uint64 `json:"stateID,string"` Payload *expr.Vars `json:"payload"` } diff --git a/pkg/wfexec/session.go b/pkg/wfexec/session.go index 7d076f642..9d828a037 100644 --- a/pkg/wfexec/session.go +++ b/pkg/wfexec/session.go @@ -65,7 +65,7 @@ type ( sessionOpt func(*Session) Frame struct { - Created time.Time `json:"created"` + CreatedAt time.Time `json:"createdAt"` SessionID uint64 `json:"sessionID"` StateID uint64 `json:"stateID"` Input *expr.Vars `json:"input"` diff --git a/pkg/wfexec/state.go b/pkg/wfexec/state.go index d183bbb4a..51c83080a 100644 --- a/pkg/wfexec/state.go +++ b/pkg/wfexec/state.go @@ -121,7 +121,7 @@ func (s State) loopCurr() Iterator { func (s State) MakeFrame() *Frame { f := &Frame{ - Created: s.created, + CreatedAt: s.created, SessionID: s.sessionId, StateID: s.stateId, Input: s.input,