diff --git a/packages/worker/src/constants/index.js b/packages/worker/src/constants/index.js index b7ac33cc28..ac0678eb2e 100644 --- a/packages/worker/src/constants/index.js +++ b/packages/worker/src/constants/index.js @@ -40,7 +40,7 @@ const TemplateBindings = { LOGO_URL: "logoUrl", STYLES: "styles", BODY: "body", - REGISTRATION_URL: "registrationUrl", + INVITE_URL: "inviteUrl", EMAIL: "email", RESET_URL: "resetUrl", USER: "user", @@ -63,7 +63,7 @@ const TemplateMetadata = { { name: "Base Format", purpose: EmailTemplatePurpose.BASE, - bindings: ["company", "registrationUrl"], + bindings: ["company", "inviteUrl"], }, { name: "Password Recovery", diff --git a/packages/worker/src/constants/templates/invitation.hbs b/packages/worker/src/constants/templates/invitation.hbs index fcaf7e7ca1..49564c7cf2 100644 --- a/packages/worker/src/constants/templates/invitation.hbs +++ b/packages/worker/src/constants/templates/invitation.hbs @@ -22,7 +22,7 @@
- Set up account + Set up account
@@ -38,7 +38,7 @@

If you’re having trouble with the button above, copy and paste the URL below into your web browser.

-

{{ registrationUrl }}

+

{{ inviteUrl }}

diff --git a/packages/worker/src/utilities/templates.js b/packages/worker/src/utilities/templates.js index a9da10405b..64ef62060d 100644 --- a/packages/worker/src/utilities/templates.js +++ b/packages/worker/src/utilities/templates.js @@ -41,7 +41,7 @@ exports.getSettingsTemplateContext = async (purpose, code = null) => { break case EmailTemplatePurpose.INVITATION: context[TemplateBindings.INVITE_CODE] = code - context[TemplateBindings.REGISTRATION_URL] = checkSlashesInUrl( + context[TemplateBindings.INVITE_URL] = checkSlashesInUrl( `${URL}/invite?code=${code}` ) break