feat(db): added missing &

This commit is contained in:
Alexander 2025-05-26 17:50:48 +02:00
parent bb13cb1911
commit 7fc744c273

View file

@ -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,