Using squirrel to generalize SQL search
This commit is contained in:
@@ -24,7 +24,9 @@ func NewArtistRepository() domain.ArtistRepository {
|
||||
|
||||
func (r *artistRepository) Put(a *domain.Artist) error {
|
||||
ta := Artist(*a)
|
||||
return r.put(a.ID, &ta)
|
||||
return WithTx(func(o orm.Ormer) error {
|
||||
return r.put(o, a.ID, &ta)
|
||||
})
|
||||
}
|
||||
|
||||
func (r *artistRepository) Get(id string) (*domain.Artist, error) {
|
||||
|
||||
Reference in New Issue
Block a user