File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -113,8 +113,9 @@ module.exports = {
113
113
114
114
// the Kafka message topic for sending email
115
115
EMAIL_TOPIC : process . env . EMAIL_TOPIC || 'external.action.email' ,
116
- // the email address for receiving the issue report
117
- REPORT_ISSUE_EMAIL : process . env . REPORT_ISSUE_EMAIL ,
116
+ // the emails address for receiving the issue report
117
+ // REPORT_ISSUE_EMAILS may contain comma-separated list of email which is converted to array
118
+ REPORT_ISSUE_EMAILS : ( process . env . REPORT_ISSUE_EMAILS || '' ) . split ( ',' ) ,
118
119
// SendGrid email template ID for reporting issue
119
120
REPORT_ISSUE_SENDGRID_TEMPLATE_ID : process . env . REPORT_ISSUE_SENDGRID_TEMPLATE_ID ,
120
121
// the URL where TaaS App is hosted
Original file line number Diff line number Diff line change @@ -19,9 +19,7 @@ module.exports = {
19
19
`Project URL: ${ config . TAAS_APP_URL } /{{projectId}}` + '\n' +
20
20
'\n' +
21
21
'{{reportText}}' ,
22
- recipients : [
23
- config . REPORT_ISSUE_EMAIL
24
- ] ,
22
+ recipients : config . REPORT_ISSUE_EMAILS ,
25
23
sendgridTemplateId : config . REPORT_ISSUE_SENDGRID_TEMPLATE_ID
26
24
} ,
27
25
/* Report issue for a particular member
@@ -39,9 +37,7 @@ module.exports = {
39
37
`Project URL: ${ config . TAAS_APP_URL } /{{projectId}}` + '\n' +
40
38
'\n' +
41
39
'{{reportText}}' ,
42
- recipients : [
43
- config . REPORT_ISSUE_EMAIL
44
- ] ,
40
+ recipients : config . REPORT_ISSUE_EMAILS ,
45
41
sendgridTemplateId : config . REPORT_ISSUE_SENDGRID_TEMPLATE_ID
46
42
}
47
43
}
You can’t perform that action at this time.
0 commit comments