diff --git a/utils/email/composer.ts b/utils/email/composer.ts index 67aa41bd..a6580ff3 100644 --- a/utils/email/composer.ts +++ b/utils/email/composer.ts @@ -146,15 +146,30 @@ export class Composer { return formattedEmail; } - + + // TODO remove this after adding this on admin public static initializeInvitationsBody(communityId: string, communityTitle: string, fullname: string): Body { let body: Body = new Body(); - let defaultMainBody = '
You are invited to subscribe to '
- + communityTitle + ' dashboard.
'
- + 'The purpose of this dashboard is to gather, link & monitor the research results related to your community.
The community dashboard is part of the OpenAIRE-Connect ' - + 'project and currently is in BETA version.' - + '
'; + let defaultMainBody; + if(communityId !== 'covid-19') { + defaultMainBody ='You are invited to subscribe to '
+ + communityTitle + ' dashboard.
'
+ + 'The purpose of this dashboard is to gather, link & monitor the research results related to your community.
The community dashboard is part of the OpenAIRE-Connect ' + + 'project and currently is in BETA version.' + + '
'; + } else { + defaultMainBody = 'This is a dashboard that gathers, links & monitors research results related COVID-19 (multi-disciplinary) from authoritative OA sources around the world. ' + + 'We have a community of experts moderating and curating the content.
' + + 'What you can do:
' + + 'The community dashboard is part of the OpenAIRE-Connect project.
' + } return body = {fromMessage: ", on behalf of ", fromName: fullname, paragraphs: defaultMainBody, signature: this.closing, note: ""}; }