Skip to content

Commit

Permalink
Fix get-users query to return all users when no ID param is given.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Oct 21, 2024
1 parent 1075485 commit 887d582
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 @@ -1136,7 +1136,7 @@ FROM users
WHEN $1::INT != 0 THEN users.id = $1
WHEN $2::TEXT != '' THEN username = $2
WHEN $3::TEXT != '' THEN email = $3
ELSE FALSE
ELSE TRUE
END
)
ORDER BY users.created_at;
Expand Down

0 comments on commit 887d582

Please # to comment.