diff --git a/sync/service/postgres.go b/sync/service/postgres.go index 3bf5ed3..2243261 100644 --- a/sync/service/postgres.go +++ b/sync/service/postgres.go @@ -155,7 +155,7 @@ func (p *Postgres) RecursBefore(date time.Time) ([]item.Item, error) { } if recurrerJSON.Valid && recurrerJSON.String != "" { var recurrer item.Recur - if err := json.Unmarshal(recurrerJSON, &recurrer); err != nil { + if err := json.Unmarshal([]byte(recurrerJSON.String), &recurrer); err != nil { return nil, fmt.Errorf("%w: %v", ErrPostgresFailure, err) } i.Recurrer = &recurrer