Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8b0c6a7

Browse files
committed
fix incorrect id
1 parent 3e78ee8 commit 8b0c6a7

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

coderd/database/queries.sql.go

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/database/queries/prebuilds.sql

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,19 +112,17 @@ WITH
112112
latest_prebuilds.workspace_id
113113
)
114114
SELECT
115-
latest_prebuilds.id,
115+
latest_prebuilds.workspace_id AS id,
116116
latest_prebuilds.name,
117117
latest_prebuilds.template_id,
118118
latest_prebuilds.template_version_id,
119119
latest_prebuilds.template_version_preset_id AS current_preset_id,
120-
agent_readiness.ready,
120+
COALESCE(agent_readiness.ready, false) AS ready,
121121
latest_prebuilds.created_at
122122
FROM
123123
latest_prebuilds
124124
JOIN agent_readiness ON
125125
agent_readiness.workspace_id = latest_prebuilds.workspace_id
126-
WHERE
127-
agent_readiness.ready
128126
;
129127

130128
-- name: CountInProgressPrebuilds :many

0 commit comments

Comments
 (0)