Use standard naming for created-at
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
@@ -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"`
|
||||
|
||||
+1
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user