Skip to content

Commit

Permalink
hotfix: stop the beatmap endpoint using a non-existent column
Browse files Browse the repository at this point in the history
  • Loading branch information
RealistikDash committed Jun 24, 2022
1 parent 11ddf56 commit ced9fb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/peppy/beatmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit ced9fb8

Please sign in to comment.