Refactored paging/sorting options
This commit is contained in:
@@ -29,7 +29,7 @@ func (r *albumRepository) Get(id string) (*domain.Album, error) {
|
||||
|
||||
func (r *albumRepository) FindByArtist(artistId string) (domain.Albums, error) {
|
||||
var as = make(domain.Albums, 0)
|
||||
err := r.loadChildren("artist", artistId, &as, "Year", false)
|
||||
err := r.loadChildren("artist", artistId, &as, domain.QueryOptions{SortBy:"Year"})
|
||||
return as, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user