📝 Changed documentation

This commit is contained in:
Scott 2018-03-14 16:09:32 +01:00
parent fd86700381
commit ed4e701eb7

View File

@ -25,7 +25,7 @@ func GetSoundTracksByUser(ctx *aero.Context) string {
// Fetch all eligible tracks
allTracks := fetchAllByUser(viewUser.ID)
// Sort the tracks by number of likes
// Sort the tracks by publication date
arn.SortSoundTracksLatestFirst(allTracks)
// Slice the part that we need
@ -48,7 +48,7 @@ func GetSoundTracksByUser(ctx *aero.Context) string {
}
// GetSoundTracksLikedByUser shows all soundtracks of a particular user.
// GetSoundTracksLikedByUser shows all soundtracks liked by a particular user.
func GetSoundTracksLikedByUser(ctx *aero.Context) string {
nick := ctx.Get("nick")
user := utils.GetUser(ctx)
@ -63,7 +63,7 @@ func GetSoundTracksLikedByUser(ctx *aero.Context) string {
// Fetch all eligible tracks
allTracks := fetchAllLikedByUser(viewUser.ID)
// Sort the tracks by number of likes
// Sort the tracks by publication date
arn.SortSoundTracksLatestFirst(allTracks)
// Slice the part that we need