From 8b64d8a14113d671e2469f5cc24762cf277ba9df Mon Sep 17 00:00:00 2001 From: Vikas Agarwal Date: Wed, 16 Jan 2019 17:43:09 +0530 Subject: [PATCH] =?UTF-8?q?Github=20issue#81,=20Empty=20email=20for=20new?= =?UTF-8?q?=20project=20links=20=E2=80=94=20Fixed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- connect/connectNotificationServer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/connect/connectNotificationServer.js b/connect/connectNotificationServer.js index 4815a93..6d556d6 100644 --- a/connect/connectNotificationServer.js +++ b/connect/connectNotificationServer.js @@ -340,8 +340,8 @@ const handler = (topic, message, logger, callback) => { notification.contents.timestamp = (new Date()).toISOString(); // if found a user then add user handle if (users.length) { - const affectedUser = _.find(users, u => `${u.userId}` === message.userId); - const initiatorUser = _.find(users, u => `${u.userId}` === message.initiatorUserId); + const affectedUser = _.find(users, u => `${u.userId}` === `${message.userId}`); + const initiatorUser = _.find(users, u => `${u.userId}` === `${message.initiatorUserId}`); if (affectedUser) { notification.contents.userHandle = affectedUser.handle; notification.contents.userFullName = `${affectedUser.firstName} ${affectedUser.lastName}`;