Indexes using slices instead of pointers of slice

This commit is contained in:
Deluan
2016-03-20 13:08:24 -04:00
parent 27b7b7ce08
commit 3f0030738a
6 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -47,8 +47,8 @@ func (c *BrowsingController) GetIndexes() {
LastModified: fmt.Sprint(utils.ToMillis(lastModified)),
}
res.Index = make([]responses.Index, len(*indexes))
for i, idx := range *indexes {
res.Index = make([]responses.Index, len(indexes))
for i, idx := range indexes {
res.Index[i].Name = idx.Id
res.Index[i].Artists = make([]responses.Artist, len(idx.Artists))
for j, a := range idx.Artists {