Custom event's payload (#3439)

* feat(db): extra log

* feat(db): removed debug log
This commit is contained in:
Alexander 2025-05-27 11:39:39 +02:00 committed by GitHub
parent 59c10cdbea
commit 63b89c816b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -732,7 +732,7 @@ func (c *connectorImpl) InsertCustom(session *sessions.Session, msg *messages.Cu
if err != nil {
return fmt.Errorf("can't marshal custom event: %s", err)
}
var customPayload interface{}
customPayload := make(map[string]interface{})
if err := json.Unmarshal([]byte(msg.Payload), &customPayload); err != nil {
log.Printf("can't unmarshal custom event payload into object: %s", err)
customPayload = map[string]interface{}{