diff --git a/packages/hoppscotch-backend/src/admin/admin.service.ts b/packages/hoppscotch-backend/src/admin/admin.service.ts index 1ac4102a..98c5d254 100644 --- a/packages/hoppscotch-backend/src/admin/admin.service.ts +++ b/packages/hoppscotch-backend/src/admin/admin.service.ts @@ -74,7 +74,7 @@ export class AdminService { try { await this.mailerService.sendUserInvitationEmail(inviteeEmail, { - template: 'code-your-own', + template: 'user-invitation', variables: { inviteeEmail: inviteeEmail, magicLink: `${process.env.VITE_BASE_URL}`, diff --git a/packages/hoppscotch-backend/src/auth/auth.service.ts b/packages/hoppscotch-backend/src/auth/auth.service.ts index 63e59ac2..a794a1da 100644 --- a/packages/hoppscotch-backend/src/auth/auth.service.ts +++ b/packages/hoppscotch-backend/src/auth/auth.service.ts @@ -229,7 +229,7 @@ export class AuthService { } await this.mailerService.sendEmail(email, { - template: 'code-your-own', + template: 'user-invitation', variables: { inviteeEmail: email, magicLink: `${url}/enter?token=${generatedTokens.token}`, diff --git a/packages/hoppscotch-backend/src/mailer/MailDescriptions.ts b/packages/hoppscotch-backend/src/mailer/MailDescriptions.ts index 864b01c7..6582e531 100644 --- a/packages/hoppscotch-backend/src/mailer/MailDescriptions.ts +++ b/packages/hoppscotch-backend/src/mailer/MailDescriptions.ts @@ -8,7 +8,7 @@ export type MailDescription = { }; export type UserMagicLinkMailDescription = { - template: 'code-your-own'; + template: 'user-invitation'; variables: { inviteeEmail: string; magicLink: string; @@ -16,7 +16,7 @@ export type UserMagicLinkMailDescription = { }; export type AdminUserInvitationMailDescription = { - template: 'code-your-own'; + template: 'user-invitation'; variables: { inviteeEmail: string; magicLink: string; diff --git a/packages/hoppscotch-backend/src/mailer/mailer.service.ts b/packages/hoppscotch-backend/src/mailer/mailer.service.ts index 8a03d6e5..b6151422 100644 --- a/packages/hoppscotch-backend/src/mailer/mailer.service.ts +++ b/packages/hoppscotch-backend/src/mailer/mailer.service.ts @@ -27,7 +27,7 @@ export class MailerService { case 'team-invitation': return `${mailDesc.variables.invitee} invited you to join ${mailDesc.variables.invite_team_name} in Hoppscotch`; - case 'code-your-own': + case 'user-invitation': return 'Sign in to Hoppscotch'; } } diff --git a/packages/hoppscotch-backend/src/mailer/templates/team-invitation.hbs b/packages/hoppscotch-backend/src/mailer/templates/team-invitation.hbs index b1128a9a..3618686e 100644 --- a/packages/hoppscotch-backend/src/mailer/templates/team-invitation.hbs +++ b/packages/hoppscotch-backend/src/mailer/templates/team-invitation.hbs @@ -14,7 +14,7 @@ -->