diff --git a/internal/db/db.go b/internal/db/db.go index 72b56ea..a6edea2 100644 --- a/internal/db/db.go +++ b/internal/db/db.go @@ -58,7 +58,7 @@ } func (p *Package) GetWantGroups() ([]model.WantGroup, error) { - var wantGroups []model.WantGroup + wantGroups := []model.WantGroup{} err := p.Db.Select(&wantGroups, "SELECT * FROM want_group_pokemon") if err != nil { return nil, errors.WithStack(err)