fix: event marshalling

This commit is contained in:
Jon Lundy committed 2022-08-15 08:05:04 -06:00
1 parent 2af4652f73
commit 5458d35be0
8 files changed
+27 -50

No files matched your search

+2 -2
View File
@@ -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)
}