Skip to content

Commit 306036e

Browse files
author
Vikas Agarwal
committed
Revert "fix: part two of fixing the coderbot notifications"
This reverts commit cf95611.
1 parent cf95611 commit 306036e

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

connect/connectNotificationServer.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ const handler = (topic, message, logger, callback) => {
456456
logger.debug(message.initiatorUserId, 'message.initiatorUserId');
457457
if (message.initiatorUserId) {
458458
// if message is posted by the coder bot, use useId of the predefined system user i.e. tcwebserivce
459-
if (botIds.indexOf(message.initiatorUserId.toString()) !== -1) {
459+
if (botIds.indexOf(message.userId.toString()) !== -1) {
460460
ids.push(config.TCWEBSERVICE_ID);
461461
} else {
462462
ids.push(message.initiatorUserId);
@@ -466,12 +466,7 @@ const handler = (topic, message, logger, callback) => {
466466
// so let's get it
467467
logger.debug(message.userId, 'message.userId');
468468
if (message.userId) {
469-
// if message is posted by the coder bot, use useId of the predefined system user i.e. tcwebserivce
470-
if (botIds.indexOf(message.userId.toString()) !== -1) {
471-
ids.push(config.TCWEBSERVICE_ID);
472-
} else {
473-
ids.push(message.userId);
474-
}
469+
ids.push(message.userId);
475470
}
476471
return service.getUsersById(ids);
477472
// return [];

0 commit comments

Comments
 (0)