Skip to content

Commit e720e3c

Browse files
committed
email invitation template data update
1 parent a6ff782 commit e720e3c

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 Connect",
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
@@ -154,9 +154,20 @@ module.exports = [
154154
createEvent(PROJECT_MEMBER_EMAIL_INVITE_CREATED,
155155
{
156156
data: {
157-
date: (new Date()).toISOString(),
158-
projectName: _project.name,
159-
projectId,
157+
connectURL: config.get('CONNECT_URL'),
158+
projects: [
159+
{
160+
name: _project.name,
161+
projectId,
162+
sections: [
163+
{
164+
EMAIL_INVITES: true,
165+
projectName: _project.name,
166+
projectId,
167+
},
168+
],
169+
},
170+
],
160171
},
161172
recipients: [v.email],
162173
version: 'v3',

0 commit comments

Comments
 (0)