Refactored paging/sorting options

This commit is contained in:
Deluan
2016-03-03 22:44:28 -05:00
parent 5ca9680059
commit 87e012f3bf
6 changed files with 26 additions and 12 deletions
+1 -1
View File
@@ -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
}