Skip to content

Commit

Permalink
Fix incorrect id logic in user selection.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Oct 20, 2024
1 parent 13222b5 commit 7847167
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion queries.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,7 @@ FROM users
WHEN $1::INT != 0 THEN users.id = $1
WHEN $2::TEXT != '' THEN username = $2
WHEN $3::TEXT != '' THEN email = $3
ELSE TRUE
ELSE FALSE
END
)
ORDER BY users.created_at;
Expand Down

0 comments on commit 7847167

Please sign in to comment.