fix marshaljson not being called

This commit is contained in:
saji 2023-09-29 07:53:29 +09:30
parent 2d634d863d
commit 675c42cfd5

View file

@ -99,7 +99,7 @@ type BusEvent struct {
Data Packet `json:"data"` Data Packet `json:"data"`
} }
func (e *BusEvent) MarshalJSON() (b []byte, err error) { func (e BusEvent) MarshalJSON() (b []byte, err error) {
// create the underlying raw event // create the underlying raw event
j := &RawJsonEvent{ j := &RawJsonEvent{
Timestamp: e.Timestamp.UnixMilli(), Timestamp: e.Timestamp.UnixMilli(),