From 120c027fcea0f79ee642407d1cc1e1053f71ba15 Mon Sep 17 00:00:00 2001 From: Morgan Bazalgette Date: Sun, 19 Feb 2017 19:01:13 +0100 Subject: [PATCH] Fix 500 on user scores --- app/v1/score.go | 2 +- app/v1/user_scores.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/v1/score.go b/app/v1/score.go index a3fd288..f10ed43 100644 --- a/app/v1/score.go +++ b/app/v1/score.go @@ -97,7 +97,7 @@ WHERE scores.beatmap_md5 = ? AND scores.completed = '3' AND `+md.User.OnlyUserPu u userData ) err := rows.Scan( - &s.ID, &s.BeatmapMD5, &s.Score, + &s.ID, &s.BeatmapMD5, &s.Score.Score, &s.MaxCombo, &s.FullCombo, &s.Mods, &s.Count300, &s.Count100, &s.Count50, &s.CountGeki, &s.CountKatu, &s.CountMiss, diff --git a/app/v1/user_scores.go b/app/v1/user_scores.go index 3aaedf4..e3710d6 100644 --- a/app/v1/user_scores.go +++ b/app/v1/user_scores.go @@ -87,7 +87,7 @@ func scoresPuts(md common.MethodData, whereClause string, params ...interface{}) b beatmap ) err = rows.Scan( - &us.ID, &us.BeatmapMD5, &us.Score, + &us.ID, &us.BeatmapMD5, &us.Score.Score, &us.MaxCombo, &us.FullCombo, &us.Mods, &us.Count300, &us.Count100, &us.Count50, &us.CountGeki, &us.CountKatu, &us.CountMiss,