Skip to content

feat: add notification for suspended/activated account #14367

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 20 commits into from
Aug 22, 2024
Prev Previous commit
Next Next commit
fix escape
  • Loading branch information
mtojek committed Aug 21, 2024
commit 55e4e13c510885c3aeb38bcee008293b0e587ced
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
INSERT INTO notification_templates (id, name, title_template, body_template, "group", actions)
VALUES ('b02ddd82-4733-4d02-a2d7-c36f3598997d', 'User account suspended', E'User account "{{.Labels.suspended_account_name}}" suspended',
E'Hi {{.UserName}},\n\User account **{{.Labels.suspended_account_name}}** has been suspended.',
E'Hi {{.UserName}},\nUser account **{{.Labels.suspended_account_name}}** has been suspended.',
'Workspace Events', '[
{
"label": "View accounts",
Expand All @@ -9,7 +9,7 @@ VALUES ('b02ddd82-4733-4d02-a2d7-c36f3598997d', 'User account suspended', E'User
]'::jsonb);
INSERT INTO notification_templates (id, name, title_template, body_template, "group", actions)
VALUES ('9f5af851-8408-4e73-a7a1-c6502ba46689', 'User account activated', E'User account "{{.Labels.activated_account_name}}" activated',
E'Hi {{.UserName}},\n\User account **{{.Labels.activated_account_name}}** has been activated.',
E'Hi {{.UserName}},\nUser account **{{.Labels.activated_account_name}}** has been activated.',
'Workspace Events', '[
{
"label": "View accounts",
Expand Down
Loading