From 9235ab6414406fc1f395b206bb44c7b3f049ebc8 Mon Sep 17 00:00:00 2001 From: Deluan Date: Sat, 7 Mar 2020 13:10:20 -0500 Subject: [PATCH] fix: index albumArtist as part of the album searchable fields --- persistence/album_repository.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/persistence/album_repository.go b/persistence/album_repository.go index c66d0da84..5df75cb8b 100644 --- a/persistence/album_repository.go +++ b/persistence/album_repository.go @@ -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 {