scan tags fix

This commit is contained in:
Richard Bondi 2021-02-18 16:30:21 -06:00 committed by fiatjaf
parent 7048f3186c
commit e6cc6347e2

View File

@ -35,7 +35,7 @@ type Event struct {
type Tags []Tag
func (t Tags) Scan(src interface{}) error {
func (t *Tags) Scan(src interface{}) error {
var jtags []byte = make([]byte, 0)
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")
}
json.Unmarshal(jtags, t)
json.Unmarshal(jtags, &t)
return nil
}