Skip to content

Commit 18e136e

Browse files
authored
Update connectNotificationServer.js
1 parent 6ac02e9 commit 18e136e

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
@@ -284,7 +284,7 @@ const handler = (topic, message, callback) => {
284284
// - check that event has everything required or throw error
285285
getNotificationsForTopicStarter(eventConfig, message.topicId),
286286
getNotificationsForUserId(eventConfig, message.userId),
287-
getNotificationsForMentionedUser(eventConfig, message.contents.postContent),
287+
message.contents && message.contents.postContent ? getNotificationsForMentionedUser(eventConfig, message.contents.postContent) : Promise.resolve([]),
288288
getProjectMembersNotifications(eventConfig, project),
289289
getTopCoderMembersNotifications(eventConfig),
290290
]).then((notificationsPerSource) => (

0 commit comments

Comments
 (0)