Skip to content

Commit 41ed54a

Browse files
committed
feat(coderd/database): add new information to the account activated notification body template
1 parent adffe60 commit 41ed54a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

coderd/database/migrations/000262_improve_notification_templates.down.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ WHERE
66

77
UPDATE notification_templates
88
SET
9-
body_template = REPLACE(body_template::text, E'Hi {{.UserName}},\n', 'Hi {{.UserName}},')::text
9+
body_template = E'Hi {{.UserName}},\nUser account **{{.Labels.activated_account_name}}** has been activated.'
1010
WHERE
1111
id = '9f5af851-8408-4e73-a7a1-c6502ba46689';
1212

coderd/database/migrations/000262_improve_notification_templates.up.sql

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ WHERE
66

77
UPDATE notification_templates
88
SET
9-
body_template = REPLACE(body_template::text, 'Hi {{.UserName}},', E'Hi {{.UserName}},\n')::text
9+
body_template = E'Hi {{.UserName}},\n\n'
10+
'User account **{{.Labels.activated_account_name}}** has been activated. '
11+
'The newly activated account belongs to **{{.Labels.activated_account_user_name}}** and was activated by **{{.Labels.account_activator_user_name}}**.'
1012
WHERE
11-
id = '9f5af851-8408-4e73-a7a1-c6502ba46689';
13+
id = '9f5af851-8408-4e73-a7a1-c6502ba46689';
1214

1315
UPDATE notification_templates
1416
SET

0 commit comments

Comments
 (0)