Skip to content

Commit 7821aa4

Browse files
committed
Search all templates with name
1 parent c6e3a57 commit 7821aa4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

coderd/database/queries.sql.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/database/queries/workspaces.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ WHERE
3939
-- Use the organization filter to restrict to 1 org if needed.
4040
AND CASE
4141
WHEN @template_name :: text != '' THEN
42-
template_id = (SELECT id FROM templates WHERE name = @template_name)
42+
template_id = ANY(SELECT id FROM templates WHERE name = @template_name)
4343
ELSE true
4444
END
4545
-- Filter by template_ids

0 commit comments

Comments
 (0)