Use standard naming for created-at

This commit is contained in:
Denis Arh
2021-03-12 13:12:08 +01:00
parent e17e16106d
commit babaa5c553
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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"`
}
+1 -1
View File
@@ -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
View File
@@ -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,