Skip to content

Commit c19f28a

Browse files
refactor: minor improvements
1 parent c47ddaa commit c19f28a

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

coderd/database/queries.sql.go

Lines changed: 3 additions & 0 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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ RETURNING w.id, w.name;
2727
SELECT
2828
t.id AS template_id,
2929
t.name AS template_name,
30+
o.id AS organization_id,
3031
o.name AS organization_name,
3132
tv.id AS template_version_id,
3233
tv.name AS template_version_name,

enterprise/coderd/prebuilds/reconcile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ func (c *StoreReconciler) notifyPrebuildFailureLimitReached(ctx context.Context,
514514
map[string]any{},
515515
"prebuilds_reconciler",
516516
// Associate this notification with all the related entities.
517-
ps.Preset.TemplateID, ps.Preset.TemplateVersionID, ps.Preset.ID,
517+
ps.Preset.TemplateID, ps.Preset.TemplateVersionID, ps.Preset.ID, ps.Preset.OrganizationID,
518518
); err != nil {
519519
c.logger.Error(ctx,
520520
"failed to send notification",

0 commit comments

Comments
 (0)