v1.0.3 Ошибка в Albums

main v1.0.3
parent c8f64cc9f0
commit 09cec9c71e

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

Loading…
Cancel
Save