Skip to content

Commit

Permalink
fix: value conversion error
Browse files Browse the repository at this point in the history
  • Loading branch information
FemiNoviaLina committed Apr 4, 2024
1 parent 578efb0 commit ba05173
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/metadata/metadata.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package metadata

import (
"encoding/json"
"fmt"

"google.golang.org/protobuf/types/known/structpb"
Expand All @@ -26,7 +27,8 @@ func (m Metadata) ToStringValueMap() map[string]string {
newMap := make(map[string]string)

for key, value := range m {
newMap[key] = value.(string)
val, _ := json.Marshal(value)
newMap[key] = string(val)
}

return newMap
Expand Down

0 comments on commit ba05173

Please sign in to comment.