From 887d5823f47ff218fd1b904f57be820fafd9320c Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Mon, 21 Oct 2024 23:20:07 +0530 Subject: [PATCH] Fix get-users query to return all users when no ID param is given. --- queries.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/queries.sql b/queries.sql index df04debbf..1712477db 100644 --- a/queries.sql +++ b/queries.sql @@ -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;