Storm AlbumRepository complete.

This commit is contained in:
Deluan
2020-01-10 17:58:08 -05:00
committed by Deluan Quintão
parent 0ca691b37f
commit c608e917db
10 changed files with 267 additions and 13 deletions
+5 -3
View File
@@ -28,10 +28,12 @@ func (r *artistRepository) Put(a *domain.Artist) error {
func (r *artistRepository) Get(id string) (*domain.Artist, error) {
ta := &_Artist{}
err := Db().One("ID", id, ta)
err := r.getByID(id, ta)
if err != nil {
return nil, err
}
a := domain.Artist(*ta)
return &a, err
return &a, nil
}
func (r *artistRepository) PurgeInactive(active domain.Artists) ([]string, error) {