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
Cast types
  • Loading branch information
BrunoQuaresma committed Sep 16, 2022
commit 8e740de7e8c6068667be4ff55ad853dc2dc5c5fc
4 changes: 2 additions & 2 deletions coderd/database/queries/auditlogs.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ LEFT JOIN
WHERE
-- Filter resource_type
CASE
WHEN @resource_type :: text != '' THEN
WHEN @resource_type :: resource_type != '' THEN
resource_type = @resource_type
ELSE true
END
-- Filter action
AND CASE
WHEN @action :: text != '' THEN
WHEN @action :: audit_action != '' THEN
action = @action
ELSE true
END
Expand Down