Search for artists case-insensitive
This commit is contained in:
parent
e9e09a7480
commit
40fd5bab34
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ func (r *artistRepository) Get(id string) (*model.Artist, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *artistRepository) FindByName(name 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
|
var res model.Artists
|
||||||
if err := r.queryAll(sel, &res); err != nil {
|
if err := r.queryAll(sel, &res); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue