From ced9fb8c35f821eb9a0f7c7f492e5f75339408a9 Mon Sep 17 00:00:00 2001 From: RealistikDash Date: Fri, 24 Jun 2022 22:00:12 +0200 Subject: [PATCH] hotfix: stop the beatmap endpoint using a non-existent column --- app/peppy/beatmap.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/peppy/beatmap.go b/app/peppy/beatmap.go index b9c35da..3391a18 100644 --- a/app/peppy/beatmap.go +++ b/app/peppy/beatmap.go @@ -4,10 +4,10 @@ import ( "strconv" "strings" + "github.com/RealistikOsu/RealistikAPI/common" "github.com/jmoiron/sqlx" "github.com/thehowl/go-osuapi" "github.com/valyala/fasthttp" - "github.com/RealistikOsu/RealistikAPI/common" ) // GetBeatmap retrieves general beatmap information. @@ -58,7 +58,7 @@ func GetBeatmap(c *fasthttp.RequestCtx, db *sqlx.DB) { passcount, max_combo, difficulty_std, difficulty_taiko, difficulty_ctb, difficulty_mania, latest_update -FROM beatmaps `+where+" ORDER BY id DESC LIMIT "+limit, +FROM beatmaps `+where+" ORDER BY beatmap_id DESC LIMIT "+limit, params...) if err != nil { common.Err(c, err)