Skip to content

Commit fad9072

Browse files
committed
add comment to a few more places
1 parent 410ea1e commit fad9072

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

coderd/database/queries.sql.go

Lines changed: 2 additions & 0 deletions
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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ WHERE
303303
WHERE
304304
workspace_resources.job_id = latest_build.provisioner_job_id AND
305305
latest_build.transition = 'start'::workspace_transition AND
306+
-- Filter out deleted sub agents.
306307
workspace_agents.deleted = FALSE AND
307308
@has_agent = (
308309
CASE
@@ -849,6 +850,7 @@ LEFT JOIN LATERAL (
849850
FROM workspace_resources
850851
JOIN workspace_agents ON (
851852
workspace_agents.resource_id = workspace_resources.id
853+
-- Filter out deleted sub agents.
852854
AND workspace_agents.deleted = FALSE
853855
)
854856
WHERE job_id = latest_build.job_id

0 commit comments

Comments
 (0)