Skip to content

Commit

Permalink
fix email generate for careteam invites with following
Browse files Browse the repository at this point in the history
Brian noticed that emails weren't going out as expected. It appears that I
mixed up email body with the email subject!

BACK-2500
  • Loading branch information
ewollesen committed Jan 23, 2024
1 parent d897f7a commit 09e04e3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions templates/careteam_invite.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,18 @@ 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.
var careteamInviteWithAlerting = _CareteamInviteBodyTemplate

func NewCareteamInviteWithAlertingTemplate() (models.Template, error) {
return models.NewPrecompiledTemplate(models.TemplateNameCareteamInviteWithAlerting,
careteamInviteWithAlerting, _CareteamInviteSubjectTemplate)
_CareteamInviteSubjectTemplate,
careteamInviteWithAlerting,
)
}

0 comments on commit 09e04e3

Please sign in to comment.