Skip to content

Commit b994a61

Browse files
authored
Merge pull request topcoder-platform#651 from yoution/issue-615
fix: issue topcoder-platform#615
2 parents 04181db + 2a6226c commit b994a61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/NotificationsSchedulerService.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ async function getProjectWithId (projectId) {
4444

4545
/**
4646
* extract the members of projects and build recipients list out of them
47-
* we can use `email` to identify recipients
47+
* we can use `userId` to identify recipients
4848
* @param project the project
4949
* @returns {string[]} array of recipients
5050
*/
5151
function buildProjectTeamRecipients (project) {
52-
const recipients = _.unionBy(_.map(project.members, m => _.pick(m, 'email')), 'email')
52+
const recipients = _.unionBy(_.map(project.members, m => _.pick(m, 'userId')), 'userId')
5353
if (_.isEmpty(recipients)) {
5454
localLogger.error(`No recipients for projectId:${project.id}`, 'buildProjectTeamRecipients')
5555
}

0 commit comments

Comments
 (0)