8000 feat: notify on workspace update by DanielleMaywood · Pull Request #15979 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

feat: notify on workspace update #15979

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jan 2, 2025
Prev Previous commit
Next Next commit
fix: broken logic
  • Loading branch information
DanielleMaywood committed Dec 31, 2024
commit b3707a163eb2dc2be296d20e1affa5236fc61e1d
2 changes: 1 addition & 1 deletion coderd/workspacebuilds.go
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ func (api *API) notifyWorkspaceUpdated(
return
}

version, err := api.Database.GetTemplateVersionByID(ctx, workspace.TemplateID)
version, err := api.Database.GetTemplateVersionByID(ctx, template.ActiveVersionID)
if err != nil {
log.Warn(ctx, "failed to fetch template version for workspace creation notification", slog.F("template_id", workspace.TemplateID), slog.Error(err))
return
Expand Down
Loading
0