Skip to content

Commit d56542c

Browse files
authored
Merge pull request #140 from topcoder-platform/hotfix/accounts-app-url
Add accounts app url to notification email payload
2 parents 5cc72a8 + 4970e58 commit d56542c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

connect/config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,5 @@ module.exports = {
3535
DEFAULT_REPLY_EMAIL: process.env.DEFAULT_REPLY_EMAIL,
3636

3737
CONNECT_URL: process.env.CONNECT_URL || 'https://connect.topcoder-dev.com',
38+
ACCOUNTS_APP_URL: process.env.ACCOUNTS_APP_URL || "https://accounts.topcoder-dev.com",
3839
};

connect/notificationServices/email.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ function handleScheduledEvents(events, setEventsStatus) {
9898
const bundleData = {
9999
subject: 'Your Topcoder project updates',
100100
connectURL: config.CONNECT_URL,
101+
accountsAppURL: config.ACCOUNTS_APP_URL,
101102
projects: _.chain(userEvents)
102103
.groupBy('data.data.projectId')
103104
.mapValues(projectUserEvents => ({
@@ -165,6 +166,7 @@ function wrapIndividualNotification(data) {
165166
return {
166167
subject,
167168
connectURL: config.CONNECT_URL,
169+
accountsAppURL: config.ACCOUNTS_APP_URL,
168170
projects: [{
169171
id: data.data.data.projectId,
170172
name: data.data.data.projectName,

0 commit comments

Comments
 (0)