@ -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