fix: Serialise nested protobuf structs correctly (#674)

This commit is contained in:
Juan Vallés 2022-05-05 15:13:18 +02:00 committed by GitHub
parent a45769c24f
commit 3a593aacb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -2,7 +2,6 @@ package rpc
import ( import (
"context" "context"
"fmt"
"net" "net"
"strings" "strings"
"sync" "sync"
@ -97,10 +96,7 @@ func (s *Server) Send(ctx context.Context, in *proto.NotificationRequest) (*prot
} }
if in.Data != nil { if in.Data != nil {
notification.Data = map[string]interface{}{} notification.Data = in.Data.AsMap()
for k, v := range in.Data.AsMap() {
notification.Data[k] = fmt.Sprintf("%v", v)
}
} }
go func() { go func() {