Skip to content

Commit

Permalink
Fix PutDataValue
Browse files Browse the repository at this point in the history
persistence: make PutDataValue accept interface{}
  • Loading branch information
and3rson committed Jul 5, 2021
1 parent e5a597b commit c4459d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion persistence.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (c *PersistenceContext) SetState(state string) {
}

// PutValueData is a shortcut to insert value into conversation data in one line.
func (c *PersistenceContext) PutDataValue(key string, value string) {
func (c *PersistenceContext) PutDataValue(key string, value interface{}) {
data := c.GetData()
data[key] = value
c.SetData(data)
Expand Down

0 comments on commit c4459d2

Please sign in to comment.