Converted all collections from repositories to *collections

This commit is contained in:
Deluan
2016-03-08 20:33:09 -05:00
parent e9ab07e4d3
commit 60d4cb5d9f
16 changed files with 53 additions and 49 deletions
+2 -2
View File
@@ -34,8 +34,8 @@ func (c *GetIndexesController) Get() {
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 {