Skip to content
Merged
Show file tree
Hide file tree
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 query
  • Loading branch information
BrunoQuaresma committed Sep 16, 2022
commit a678105c47f562c7ea97732dcc6e94f34243bcdf
4 changes: 2 additions & 2 deletions coderd/database/queries.sql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions coderd/database/queries/auditlogs.sql
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ WHERE
-- Filter resource_type
CASE
WHEN @resource_type :: text != '' THEN
resource_type = LOWER(@resource_type)
resource_type = @resource_type
ELSE true
END
-- Filter action
AND CASE
WHEN @action :: text != '' THEN
action = LOWER(@action)
action = @action
ELSE true
END
ORDER BY
Expand Down