Fix starring albums. Seems I may have lost a commit?

This commit is contained in:
Deluan
2020-08-15 15:03:03 -04:00
parent 5f38e70a2b
commit a2e0acd6a2
2 changed files with 7 additions and 4 deletions
+4 -4
View File
@@ -319,14 +319,14 @@ func (r albumRepository) Delete(id string) error {
}
func (r albumRepository) Save(entity interface{}) (string, error) {
mf := entity.(*model.Artist)
id, err := r.put(mf.ID, mf)
album := entity.(*model.Album)
id, err := r.put(album.ID, album)
return id, err
}
func (r albumRepository) Update(entity interface{}, cols ...string) error {
mf := entity.(*model.Artist)
_, err := r.put(mf.ID, mf)
album := entity.(*model.Album)
_, err := r.put(album.ID, album)
return err
}