|
| 1 | +-- https://github.com/coder/coder/issues/14893 |
| 2 | + |
| 3 | +-- UserAccountSuspended |
| 4 | +UPDATE notification_templates |
| 5 | +SET |
| 6 | + body_template = E'Hi {{.UserName}},\n\n' || -- Add a \n |
| 7 | + E'User account **{{.Labels.suspended_account_name}}** has been suspended.\n\n' || |
| 8 | + -- Use the conventional initiator label: |
| 9 | + E'The newly suspended account belongs to **{{.Labels.suspended_account_user_name}}** and was suspended by **{{.Labels.initiator}}**.' |
| 10 | +WHERE |
| 11 | + id = 'b02ddd82-4733-4d02-a2d7-c36f3598997d'; |
| 12 | + |
| 13 | +-- UserAccountActivated |
| 14 | +UPDATE notification_templates |
| 15 | +SET |
| 16 | + body_template = E'Hi {{.UserName}},\n\n' || -- Add a \n |
| 17 | + E'User account **{{.Labels.activated_account_name}}** has been activated.\n\n' || |
| 18 | + -- Use the conventional initiator label: |
| 19 | + E'The newly activated account belongs to **{{.Labels.activated_account_user_name}}** and was activated by **{{.Labels.initiator}}**.' |
| 20 | +WHERE |
| 21 | + id = '9f5af851-8408-4e73-a7a1-c6502ba46689'; |
| 22 | + |
| 23 | +-- UserAccountCreated |
| 24 | +UPDATE notification_templates |
| 25 | +SET |
| 26 | + body_template = E'Hi {{.UserName}},\n\n' || |
| 27 | + E'New user account **{{.Labels.created_account_name}}** has been created.\n\n' || |
| 28 | + -- Use the conventional initiator label: |
| 29 | + E'This new user account was created for **{{.Labels.created_account_user_name}}** by **{{.Labels.initiator}}**.' |
| 30 | +WHERE |
| 31 | + id = '4e19c0ac-94e1-4532-9515-d1801aa283b2'; |
| 32 | + |
| 33 | +-- UserAccountDeleted |
| 34 | +UPDATE notification_templates |
| 35 | +SET |
| 36 | + body_template = E'Hi {{.UserName}},\n\n' || |
| 37 | + E'User account **{{.Labels.deleted_account_name}}** has been deleted.\n\n' || |
| 38 | + -- Use the conventional initiator label: |
| 39 | + E'The deleted account belonged to **{{.Labels.deleted_account_user_name}}** and was deleted by **{{.Labels.initiator}}**.' |
| 40 | +WHERE |
| 41 | + id = 'f44d9314-ad03-4bc8-95d0-5cad491da6b6'; |
0 commit comments