Skip to content

Commit 8ff7c92

Browse files
committed
indexBy was renamed to keyBy in lodash 4
1 parent 8785aee commit 8ff7c92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/backend/api/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ module.exports = function (config) {
3939
return db.users.find({ _id: { $in: _.map(messages, '_id') } })
4040
.then(users => {
4141
users = users.map(i => _.pick(i, ['_id', 'username', 'badge']))
42-
return { messages, users: _.indexBy(users, '_id') }
42+
return { messages, users: _.keyBy(users, '_id') }
4343
})
4444
})
4545
}))

0 commit comments

Comments
 (0)