Add stars to Albums

This commit is contained in:
Deluan 2020-08-14 13:35:28 -04:00
parent f2ebbd26fa
commit c2e03c8162
8 changed files with 56 additions and 8 deletions

View file

@ -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)