Skip to content

Commit 61e1103

Browse files
author
Vikas Agarwal
committed
Converter message initiator id to string before comparing with notification user id
1 parent 966cd34 commit 61e1103

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

connect/connectNotificationServer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ const handler = (topic, message, callback) => {
307307
project,
308308
})
309309
)).then((notifications) => {
310-
allNotifications = _.filter(notifications, notification => notification.userId !== message.initiatorUserId);
310+
allNotifications = _.filter(notifications, notification => notification.userId !== `${message.initiatorUserId}`);
311311

312312
// now let's retrieve some additional data
313313

0 commit comments

Comments
 (0)