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