From 09e04e3a8cd4d3d6e54e0c683a65f26b6b230c91 Mon Sep 17 00:00:00 2001 From: Eric Wollesen Date: Thu, 18 Jan 2024 16:22:28 -0700 Subject: [PATCH] fix email generate for careteam invites with following Brian noticed that emails weren't going out as expected. It appears that I mixed up email body with the email subject! BACK-2500 --- templates/careteam_invite.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/templates/careteam_invite.go b/templates/careteam_invite.go index 8849f8a8b..7c5d87d5e 100644 --- a/templates/careteam_invite.go +++ b/templates/careteam_invite.go @@ -160,7 +160,10 @@ const _CareteamInviteBodyTemplate string = ` ` func NewCareteamInviteTemplate() (models.Template, error) { - return models.NewPrecompiledTemplate(models.TemplateNameCareteamInvite, _CareteamInviteSubjectTemplate, _CareteamInviteBodyTemplate) + return models.NewPrecompiledTemplate(models.TemplateNameCareteamInvite, + _CareteamInviteSubjectTemplate, + _CareteamInviteBodyTemplate, + ) } // Awaiting new content for invitations with alerting, but until then, use the existing email. @@ -168,5 +171,7 @@ var careteamInviteWithAlerting = _CareteamInviteBodyTemplate func NewCareteamInviteWithAlertingTemplate() (models.Template, error) { return models.NewPrecompiledTemplate(models.TemplateNameCareteamInviteWithAlerting, - careteamInviteWithAlerting, _CareteamInviteSubjectTemplate) + _CareteamInviteSubjectTemplate, + careteamInviteWithAlerting, + ) }