Correct response body for getSongsByGenre

This commit is contained in:
delucks 2020-05-22 17:42:36 -04:00 committed by Deluan Quintão
parent 6f6b223453
commit ae847103a2

View File

@ -168,7 +168,7 @@ func (c *AlbumListController) GetSongsByGenre(w http.ResponseWriter, r *http.Req
}
response := NewResponse()
response.RandomSongs = &responses.Songs{}
response.RandomSongs.Songs = ToChildren(r.Context(), songs)
response.SongsByGenre = &responses.Songs{}
response.SongsByGenre.Songs = ToChildren(r.Context(), songs)
return response, nil
}