From 96ea8e3fdc5c6a75244dd26b9fd22fd61117d7e2 Mon Sep 17 00:00:00 2001 From: Rishabh Mishra Date: Fri, 8 Sep 2023 17:02:36 +0530 Subject: [PATCH] chore: add OrganizationID and InviteID to mail template (#329) --- core/invitation/service.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/invitation/service.go b/core/invitation/service.go index 12e6c4883..4f9f57d7b 100644 --- a/core/invitation/service.go +++ b/core/invitation/service.go @@ -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)