Skip to content

Commit 89caf05

Browse files
committed
fix:changes in accept invitation url
Signed-off-by: shitrerohit <[email protected]>
1 parent fa7886f commit 89caf05

File tree

1 file changed

+17
-22
lines changed

1 file changed

+17
-22
lines changed

apps/organization/templates/organization-invitation.template.ts

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
11
export class OrganizationInviteTemplate {
2+
public sendInviteEmailTemplate(
3+
email: string,
4+
orgName: string,
5+
orgRolesDetails: object[],
6+
firstName: string,
7+
isUserExist: boolean
8+
): string {
9+
const validUrl = isUserExist ? `${process.env.FRONT_END_URL}/sign-in` : `${process.env.FRONT_END_URL}/sign-up`;
210

3-
public sendInviteEmailTemplate(
4-
email: string,
5-
orgName: string,
6-
orgRolesDetails: object[],
7-
firstName: string,
8-
isUserExist: boolean
9-
): string {
11+
const message = isUserExist
12+
? `Please accept the invitation using the following link:`
13+
: `To get started, kindly register on ${process.env.PLATFORM_NAME} platform using this link:`;
1014

11-
const validUrl = isUserExist ? `${process.env.FRONT_END_URL}/authentication/sign-in` : `${process.env.FRONT_END_URL}/authentication/sign-up`;
15+
const secondMessage = isUserExist
16+
? `After successful login into ${process.env.PLATFORM_NAME} click on "Accept Organization Invitation" link on your dashboard.`
17+
: `After successful registration, you can log in to the platform and click on “Accept Organization Invitation” on your dashboard.`;
1218

13-
const message = isUserExist
14-
? `Please accept the invitation using the following link:`
15-
: `To get started, kindly register on ${process.env.PLATFORM_NAME} platform using this link:`;
19+
const Button = isUserExist ? `Accept Organization Invitation` : `Register on ${process.env.PLATFORM_NAME}`;
1620

17-
const secondMessage = isUserExist
18-
? `After successful login into ${process.env.PLATFORM_NAME} click on "Accept Organization Invitation" link on your dashboard.`
19-
: `After successful registration, you can log in to the platform and click on “Accept Organization Invitation” on your dashboard.`;
20-
21-
const Button = isUserExist ? `Accept Organization Invitation` : `Register on ${process.env.PLATFORM_NAME}`;
22-
2321
return `<!DOCTYPE html>
2422
<html lang="en">
2523
@@ -75,8 +73,5 @@ export class OrganizationInviteTemplate {
7573
</body>
7674
7775
</html>`;
78-
79-
}
80-
81-
82-
}
76+
}
77+
}

0 commit comments

Comments
 (0)