Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: add comment about @status being a text
  • Loading branch information
BrunoQuaresma committed Apr 28, 2022
commit 677cb6f9e958aa441cb0c7ff230b15b6690d03b0
2 changes: 2 additions & 0 deletions coderd/database/queries/users.sql
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ WHERE
END
-- Filter by status
AND CASE
-- @status needs to be a text because it can be empty, If it was
-- user_status enum, it would not.
WHEN @status :: text != '' THEN (
status = @status
)
Expand Down