feat(db): added missing &
This commit is contained in:
parent
bb13cb1911
commit
7fc744c273
1 changed files with 1 additions and 1 deletions
|
|
@ -733,7 +733,7 @@ func (c *connectorImpl) InsertCustom(session *sessions.Session, msg *messages.Cu
|
||||||
return fmt.Errorf("can't marshal custom event: %s", err)
|
return fmt.Errorf("can't marshal custom event: %s", err)
|
||||||
}
|
}
|
||||||
var customPayload interface{}
|
var customPayload interface{}
|
||||||
if err := json.Unmarshal([]byte(msg.Payload), customPayload); err != nil {
|
if err := json.Unmarshal([]byte(msg.Payload), &customPayload); err != nil {
|
||||||
log.Printf("can't unmarshal custom event payload into object: %s", err)
|
log.Printf("can't unmarshal custom event payload into object: %s", err)
|
||||||
customPayload = map[string]interface{}{
|
customPayload = map[string]interface{}{
|
||||||
"payload": msg.Payload,
|
"payload": msg.Payload,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue