fix: change notifications actions url (#17083)

Related to #17082

Some notifications ( workspace created and workspace manually updated )
are using wrong variables to build the Action URL. Fixing it.
This commit is contained in:
Vincent Vielle
2025-03-25 11:29:02 +01:00
committed by GitHub
parent 081679f431
commit 7b65422ef3
9 changed files with 80 additions and 28 deletions

View File

@ -801,9 +801,10 @@ func (api *API) notifyWorkspaceCreated(
receiverID,
notifications.TemplateWorkspaceCreated,
map[string]string{
"workspace": workspace.Name,
"template": template.Name,
"version": version.Name,
"workspace": workspace.Name,
"template": template.Name,
"version": version.Name,
"workspace_owner_username": owner.Username,
},
map[string]any{
"workspace": map[string]any{"id": workspace.ID, "name": workspace.Name},