Skip to content

Commit

Permalink
Search for artists case-insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
deluan committed Oct 20, 2020
1 parent e9e09a7 commit 40fd5ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion persistence/artist_repository.go
Expand Up @@ -67,7 +67,7 @@ func (r *artistRepository) Get(id string) (*model.Artist, error) {
}

func (r *artistRepository) FindByName(name string) (*model.Artist, error) {
sel := r.selectArtist().Where(Eq{"name": name})
sel := r.selectArtist().Where(Like{"name": name})
var res model.Artists
if err := r.queryAll(sel, &res); err != nil {
return nil, err
Expand Down

0 comments on commit 40fd5ba

Please sign in to comment.