mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: improve notification template tests' resilience (#14196)
This commit is contained in:
+4
@@ -0,0 +1,4 @@
|
||||
UPDATE notification_templates
|
||||
SET body_template = E'Hi {{.UserName}}\n' ||
|
||||
E'Your workspace **{{.Labels.name}}** has been updated automatically to the latest template version ({{.Labels.template_version_name}}).'
|
||||
WHERE id = 'c34a0c09-0704-4cac-bd1c-0c0146811c2b';
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
UPDATE notification_templates
|
||||
SET name = 'Workspace Updated Automatically', -- drive-by fix for capitalization to match other templates
|
||||
body_template = E'Hi {{.UserName}}\n' ||
|
||||
E'Your workspace **{{.Labels.name}}** has been updated automatically to the latest template version ({{.Labels.template_version_name}}).\n' ||
|
||||
E'Reason for update: **{{.Labels.template_version_message}}**' -- include template version message
|
||||
WHERE id = 'c34a0c09-0704-4cac-bd1c-0c0146811c2b';
|
||||
Reference in New Issue
Block a user