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
@@ -32,7 +32,7 @@ func (r *artistIndexRepository) Get(id string) (*domain.ArtistIndex, error) {
func (r *artistIndexRepository) GetAll() (domain.ArtistIndexes, error) {
var indices = make(domain.ArtistIndexes, 0)
err := r.loadAll(&indices, "", true)
err := r.loadAll(&indices, domain.QueryOptions{Alpha:true})
return indices, err
}