Skip to content

Commit 111b302

Browse files
author
Parth Shah
committed
fixing codebot bug
1 parent 4a48b6d commit 111b302

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/config/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ export const PROJECT_REF_CODE_MAX_LENGTH = 7
211211
export const PROJECT_FEED_TYPE_PRIMARY = 'PRIMARY'
212212
export const PROJECT_FEED_TYPE_MESSAGES = 'MESSAGES'
213213

214-
export const DISCOURSE_BOT_USERID = 'CoderBot'
214+
export const DISCOURSE_BOT_USERID = 'system'
215215
export const CODER_BOT_USERID = 'CoderBot'
216216
export const CODER_BOT_USER_FNAME = 'Coder'
217217
export const CODER_BOT_USER_LNAME = 'Bot'

src/projects/actions/projectTopics.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const getProjectTopicsWithMember = (dispatch, projectId, tag) => {
8787
userIds = _.union(userIds, _.map(topic.posts, 'userId'))
8888
})
8989
// this is to remove any nulls from the list (dev had some bad data)
90-
_.remove(userIds, i => !i && [DISCOURSE_BOT_USERID, CODER_BOT_USERID].indexOf(i) > -1)
90+
_.remove(userIds, i => !i || [DISCOURSE_BOT_USERID, CODER_BOT_USERID].indexOf(i) > -1)
9191
// return if there are no userIds to retrieve, empty result set
9292
if (!userIds.length)
9393
resolve(value)

0 commit comments

Comments
 (0)