Skip to content

Commit e0d6fa4

Browse files
committed
fix(publisher/queue/aws): fix marshallJSON
1 parent f0c8f99 commit e0d6fa4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ipnipublisher/queue/aws/sqsadvertisementpublishingqueue.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ import (
1616
type advMarshaller schema.Advertisement
1717

1818
func (a advMarshaller) MarshalJSON() ([]byte, error) {
19-
return ipldjson.Encode(schema.Advertisement(a), schema.AdvertisementPrototype.Type())
19+
return ipldjson.Encode((*schema.Advertisement)(&a), schema.AdvertisementPrototype.Type())
2020
}
21+
2122
func (a *advMarshaller) UnmarshalJSON(data []byte) error {
2223
var adv schema.Advertisement
2324
err := ipldjson.Decode(data, &adv, schema.AdvertisementPrototype.Type())

0 commit comments

Comments
 (0)