Skip to content

Commit 9a5a74b

Browse files
committed
fix: status filter o users sql
1 parent f4465d0 commit 9a5a74b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

coderd/database/queries/users.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ WHERE
8181
email LIKE concat('%', @search, '%')
8282
OR username LIKE concat('%', @search, '%')
8383
)
84+
ELSE true
85+
AND CASE
8486
WHEN @status :: user_status != '' THEN (
8587
status = @status
8688
)

0 commit comments

Comments
 (0)