From 8a0cc76a6ebb168a6bfc3990d416595c22140106 Mon Sep 17 00:00:00 2001 From: Vikas Agarwal Date: Mon, 21 Jan 2019 11:19:59 +0530 Subject: [PATCH] fixed --- connect/notificationServices/email.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connect/notificationServices/email.js b/connect/notificationServices/email.js index 27aa187..50aefcc 100644 --- a/connect/notificationServices/email.js +++ b/connect/notificationServices/email.js @@ -205,7 +205,7 @@ function handler(topicName, messageJSON, notification) { const user = users && users.length > 0 ? users[0] : null; let userEmail = _.get(user, 'email'); if (!userEmail) { - logger.error(`Email not received for user: ${user.id}`); + logger.error(`Email not received for user: ${notification.userId}`); return; } const userStatus = _.get(user, 'status');