Fix Artist full_text refresh
This commit is contained in:
@@ -56,8 +56,8 @@ func (r *artistRepository) Exists(id string) (bool, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (r *artistRepository) Put(a *model.Artist) error {
|
func (r *artistRepository) Put(a *model.Artist) error {
|
||||||
|
a.FullText = getFullText(a.Name, a.SortArtistName)
|
||||||
dba := r.fromModel(a)
|
dba := r.fromModel(a)
|
||||||
a.FullText = getFullText(dba.Name, dba.SortArtistName)
|
|
||||||
_, err := r.put(dba.ID, dba)
|
_, err := r.put(dba.ID, dba)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user