Skip to content

Commit 2a6226c

Browse files
committed
1 parent 1eef453 commit 2a6226c

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)