Skip to content

Commit da896c4

Browse files
authored
Fix attribute serialization
1 parent 8faa59b commit da896c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/history/serialization.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import (
88
func (e *Event) UnmarshalJSON(data []byte) error {
99
type Aevent Event
1010
a := &struct {
11-
Attributes json.RawMessage
11+
// Attributes allows us to defer unmarshaling the events. Has to match the struct tag in Event
12+
Attributes json.RawMessage `json:"attr,omitempty"`
1213
*Aevent
1314
}{}
1415

0 commit comments

Comments
 (0)