Skip to content

Commit

Permalink
Fix ambiguous clause in top score query
Browse files Browse the repository at this point in the history
  • Loading branch information
Rian8337 committed Nov 9, 2024
1 parent 4269303 commit e048fec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/helpers/DroidHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export abstract class DroidHelper {
score.hash as hash,
score.pp as pp
FROM ${constructOfficialDatabaseTable(OfficialDatabaseTables.score)} score, ${constructOfficialDatabaseTable(OfficialDatabaseTables.user)} user
WHERE uid = ? AND score > 0 ORDER BY score DESC LIMIT ?;`,
WHERE score.uid = ? AND score.score > 0 AND user.id = score.uid ORDER BY score.score DESC LIMIT ?;`,
[uid, amount],
);

Expand Down

0 comments on commit e048fec

Please sign in to comment.