mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-06-20 22:01:59 +02:00
fix: CountEnvelope json.Marshal
This commit is contained in:
parent
7ccd0e7192
commit
9a29edca41
@ -190,7 +190,7 @@ func (v CountEnvelope) MarshalJSON() ([]byte, error) {
|
||||
w.RawString(`["COUNT",`)
|
||||
w.RawString(`"` + v.SubscriptionID + `"`)
|
||||
if v.Count != nil {
|
||||
w.RawString(fmt.Sprintf(`{"count":%d}`, *v.Count))
|
||||
w.RawString(fmt.Sprintf(`,{"count":%d}`, *v.Count))
|
||||
} else {
|
||||
for _, filter := range v.Filters {
|
||||
w.RawString(`,`)
|
||||
|
Loading…
x
Reference in New Issue
Block a user