diff --git a/sea.go b/sea.go index 72604c5..a272690 100644 --- a/sea.go +++ b/sea.go @@ -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 }