mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 20:47:35 +03:00
Add stars to Albums
This commit is contained in:
parent
f2ebbd26fa
commit
c2e03c8162
8 changed files with 56 additions and 8 deletions
|
@ -203,14 +203,14 @@ func (r artistRepository) Delete(id string) error {
|
|||
}
|
||||
|
||||
func (r artistRepository) Save(entity interface{}) (string, error) {
|
||||
mf := entity.(*model.Artist)
|
||||
err := r.Put(mf)
|
||||
return mf.ID, err
|
||||
artist := entity.(*model.Artist)
|
||||
err := r.Put(artist)
|
||||
return artist.ID, err
|
||||
}
|
||||
|
||||
func (r artistRepository) Update(entity interface{}, cols ...string) error {
|
||||
mf := entity.(*model.Artist)
|
||||
return r.Put(mf)
|
||||
artist := entity.(*model.Artist)
|
||||
return r.Put(artist)
|
||||
}
|
||||
|
||||
var _ model.ArtistRepository = (*artistRepository)(nil)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue