1
1
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` ;
2
10
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:` ;
10
14
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.` ;
12
18
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 } ` ;
16
20
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
-
23
21
return `<!DOCTYPE html>
24
22
<html lang="en">
25
23
@@ -75,8 +73,5 @@ export class OrganizationInviteTemplate {
75
73
</body>
76
74
77
75
</html>` ;
78
-
79
- }
80
-
81
-
82
- }
76
+ }
77
+ }
0 commit comments