Skip to content

Commit

Permalink
chore: add OrganizationID and InviteID to mail template (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsbh authored Sep 8, 2023
1 parent 142156f commit 96ea8e3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/invitation/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,10 @@ func (s Service) Create(ctx context.Context, invitation Invitation) (Invitation,
}
var tpl bytes.Buffer
err = t.Execute(&tpl, map[string]string{
"UserID": invitation.UserID,
"Organization": org.Name,
"UserID": invitation.UserID,
"Organization": org.Name,
"OrganizationID": org.ID,
"InviteID": invitation.ID.String(),
})
if err != nil {
return Invitation{}, fmt.Errorf("failed to parse email template: %w", err)
Expand Down

0 comments on commit 96ea8e3

Please sign in to comment.