mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-10-10 21:04:10 +02:00
scan tags fix
This commit is contained in:
@@ -35,7 +35,7 @@ type Event struct {
|
|||||||
|
|
||||||
type Tags []Tag
|
type Tags []Tag
|
||||||
|
|
||||||
func (t Tags) Scan(src interface{}) error {
|
func (t *Tags) Scan(src interface{}) error {
|
||||||
var jtags []byte = make([]byte, 0)
|
var jtags []byte = make([]byte, 0)
|
||||||
|
|
||||||
switch v := src.(type) {
|
switch v := src.(type) {
|
||||||
@@ -47,7 +47,7 @@ func (t Tags) Scan(src interface{}) error {
|
|||||||
return errors.New("couldn't scan tags, it's not a json string")
|
return errors.New("couldn't scan tags, it's not a json string")
|
||||||
}
|
}
|
||||||
|
|
||||||
json.Unmarshal(jtags, t)
|
json.Unmarshal(jtags, &t)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user