Skip to content

Commit 39e723f

Browse files
author
vikasrohit
authored
Merge pull request #217 from topcoder-platform/feature/teamManagement
Email invite template contents
2 parents 5117d45 + 8fc83b8 commit 39e723f

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

config/default.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
"whitelistedOriginsForUserIdAuth": "[\"https:\/\/topcoder-newauth.auth0.com\/\",\"https:\/\/api.topcoder-dev.com\"]",
5454
"AUTH0_PROXY_SERVER_URL" : "",
5555
"EMAIL_INVITE_FROM_NAME":"Topcoder",
56-
"EMAIL_INVITE_FROM_EMAIL":"noreply@connect.topcoder.com"
56+
"EMAIL_INVITE_FROM_EMAIL":"noreply@connect.topcoder.com",
57+
"CONNECT_URL":"https://connect.topcoder-dev.com"
5758

5859
}

src/routes/projectMemberInvites/create.js

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,20 @@ module.exports = [
155155
createEvent(emailEventType,
156156
{
157157
data: {
158-
date: (new Date()).toISOString(),
159-
projectName: _project.name,
160-
projectId,
158+
connectURL: config.get('CONNECT_URL'),
159+
projects: [
160+
{
161+
name: _project.name,
162+
projectId,
163+
sections: [
164+
{
165+
EMAIL_INVITES: true,
166+
projectName: _project.name,
167+
projectId,
168+
},
169+
],
170+
},
171+
],
161172
},
162173
recipients: [v.email],
163174
version: 'v3',

0 commit comments

Comments
 (0)