Skip to content

Commit 86447ae

Browse files
author
vikasrohit
authored
Merge pull request #83 from topcoder-platform/hotfix/null_pointer_in_logging
fixed null pointer in logging missing user email logs
2 parents c6a9096 + 8a0cc76 commit 86447ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

connect/notificationServices/email.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ function handler(topicName, messageJSON, notification) {
205205
const user = users && users.length > 0 ? users[0] : null;
206206
let userEmail = _.get(user, 'email');
207207
if (!userEmail) {
208-
logger.error(`Email not received for user: ${user.id}`);
208+
logger.error(`Email not received for user: ${notification.userId}`);
209209
return;
210210
}
211211
const userStatus = _.get(user, 'status');

0 commit comments

Comments
 (0)