Compare commits

...

4 Commits

Author SHA1 Message Date
Balu Babu
6d35688f27 chore: changed name of template to user-invitation 2023-11-06 17:13:29 +05:30
Balu Babu
173c456eb7 chore: renamed code-your-own.hbs template to user-invitation.hbs 2023-11-06 17:13:29 +05:30
Balu Babu
53644de851 chore: changed target to prod in hoppscotch-old-backend service 2023-11-06 17:13:29 +05:30
Balu Babu
feabd00d30 chore: moved templates folder to hoppscotch-backend root 2023-11-06 17:13:29 +05:30
6 changed files with 62 additions and 62 deletions

View File

@@ -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}`,

View File

@@ -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}`,

View File

@@ -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;

View File

@@ -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';
}
}