Skip to content

Commit

Permalink
fix: remove obsolete BINARY casting
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Jul 10, 2024
1 parent 8e46846 commit 9eb5bd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/graphql/operations/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default async function (parent, args) {
SUM(l.proposal_count) as proposalsCount,
MAX(l.last_vote) as lastVote
FROM users u
LEFT JOIN leaderboard l ON BINARY l.user = BINARY u.id
LEFT JOIN leaderboard l ON l.user = u.id
WHERE id = ?
LIMIT 1`;
try {
Expand Down
2 changes: 1 addition & 1 deletion src/graphql/operations/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default async function (parent, args) {
SUM(l.proposal_count) as proposalsCount,
MAX(l.last_vote) as lastVote
FROM users u
INNER JOIN leaderboard l ON BINARY l.user = BINARY u.id
INNER JOIN leaderboard l ON l.user = u.id
WHERE 1=1 ${queryStr}
GROUP BY u.id
ORDER BY ${orderBy} ${orderDirection} LIMIT ?, ?
Expand Down

0 comments on commit 9eb5bd2

Please sign in to comment.