v1.0.3 Ошибка в Albums

main v1.0.3
parent c8f64cc9f0
commit 09cec9c71e

@ -37,10 +37,10 @@ type Album struct {
Hash string Hash string
} }
func (s *Sea) Albums(db *sqlx.DB) ([]Album, error) { func (s *Sea) Albums() ([]Album, error) {
cmd := "call getAlbums()" cmd := "call getAlbums()"
var albums []Album var albums []Album
err := db.Select(&albums, cmd) err := s.db.Select(&albums, cmd)
if err != nil { if err != nil {
return nil, err return nil, err
} }

Loading…
Cancel
Save