From 2a6226c855efa7750531655428e0719b0acf1a2f Mon Sep 17 00:00:00 2001 From: yoution Date: Thu, 23 Dec 2021 16:49:08 +0800 Subject: [PATCH] fix: issue #615 --- src/services/NotificationsSchedulerService.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/NotificationsSchedulerService.js b/src/services/NotificationsSchedulerService.js index 7fb023b8..e1e540b6 100644 --- a/src/services/NotificationsSchedulerService.js +++ b/src/services/NotificationsSchedulerService.js @@ -44,12 +44,12 @@ async function getProjectWithId (projectId) { /** * extract the members of projects and build recipients list out of them - * we can use `email` to identify recipients + * we can use `userId` to identify recipients * @param project the project * @returns {string[]} array of recipients */ function buildProjectTeamRecipients (project) { - const recipients = _.unionBy(_.map(project.members, m => _.pick(m, 'email')), 'email') + const recipients = _.unionBy(_.map(project.members, m => _.pick(m, 'userId')), 'userId') if (_.isEmpty(recipients)) { localLogger.error(`No recipients for projectId:${project.id}`, 'buildProjectTeamRecipients') }