Skip to content

Commit 9258b81

Browse files
author
vikasrohit
authored
Merge pull request #126 from topcoder-platform/hotfix/handling_unhandled_error_in_getting_mentioned_user_details_updated
Hotfix/handling unhandled error in getting mentioned user details updated
2 parents 4cba87a + b99f699 commit 9258b81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

connect/connectNotificationServer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,14 @@ const getNotificationsForMentionedUser = (logger, eventConfig, content) => {
9595
notification.userId = mentionedUser ? mentionedUser.userId.toString() : notification.userHandle;
9696
});
9797
resolve(notifications);
98-
})/*.catch((error) => {
98+
}).catch((error) => {
9999
if (logger) {
100100
logger.error(error);
101101
logger.info('Unable to send notification to mentioned user')
102102
}
103103
//resolves with empty notification which essentially means we are unable to send notification to mentioned user
104104
resolve([]);
105-
})*/;
105+
});
106106
} else {
107107
resolve([]);
108108
}

0 commit comments

Comments
 (0)