From d7a1ed29a6df1623d870739c263209392186ea93 Mon Sep 17 00:00:00 2001 From: Rian8337 <52914632+Rian8337@users.noreply.github.com> Date: Tue, 12 Nov 2024 13:50:55 +0800 Subject: [PATCH] Fix ambiguous clause in beatmap leaderboard retrieval --- src/utils/helpers/DroidHelper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/helpers/DroidHelper.ts b/src/utils/helpers/DroidHelper.ts index dd3eb474..f9319c1d 100644 --- a/src/utils/helpers/DroidHelper.ts +++ b/src/utils/helpers/DroidHelper.ts @@ -77,7 +77,7 @@ export abstract class DroidHelper { score.hash as hash, score.pp as pp FROM ${constructOfficialDatabaseTable(OfficialDatabaseTables.score)} score, ${constructOfficialDatabaseTable(OfficialDatabaseTables.user)} user - WHERE hash = ? AND score > 0 ORDER BY pp DESC LIMIT ? OFFSET ?;`, + WHERE score.hash = ? AND score.score > 0 ORDER BY score.pp DESC LIMIT ? OFFSET ?;`, [hash, scoresPerPage, (page - 1) * scoresPerPage], );