fix: event marshalling
This commit is contained in:
@@ -337,10 +337,10 @@ func (e *PostEvent) SetEventMeta(eventMeta event.Meta) {
|
||||
}
|
||||
e.eventMeta = eventMeta
|
||||
}
|
||||
func (e *PostEvent) MarshalText() ([]byte, error) {
|
||||
func (e *PostEvent) MarshalBinary() ([]byte, error) {
|
||||
return json.Marshal(e)
|
||||
}
|
||||
func (e *PostEvent) UnmarshalText(b []byte) error {
|
||||
func (e *PostEvent) UnmarshalBinary(b []byte) error {
|
||||
return json.Unmarshal(b, e)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user