fix: index albumArtist as part of the album searchable fields

This commit is contained in:
Deluan 2020-03-07 13:10:20 -05:00
parent 59356f0029
commit 9235ab6414

View File

@ -9,7 +9,6 @@ import (
"github.com/deluan/navidrome/log"
"github.com/deluan/navidrome/model"
"github.com/deluan/rest"
"github.com/dhowden/tag/mbz"
)
type albumRepository struct {
@ -37,7 +36,7 @@ func (r *albumRepository) Put(a *model.Album) error {
if err != nil {
return err
}
return r.index(a.ID, a.Name, a.Artist, mbz.AlbumArtist)
return r.index(a.ID, a.Name, a.Artist, a.AlbumArtist)
}
func (r *albumRepository) selectAlbum(options ...model.QueryOptions) SelectBuilder {