Skip to content

Commit

Permalink
Add support for exclusive badges
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwofford committed Dec 4, 2019
1 parent f55c293 commit ae07caf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ export const getInfoForUser = user =>
Promise.all([
getSlackUser(user).then(slackUser => (results.slackUser = slackUser)),
userRecord(user).then(userRecord => (results.userRecord = userRecord)),
airGet('Badges', `FIND('${user}', {People Slack IDs})`).then(badges => results.badges = badges),
// Get the leader from the user
airFind('Leaders', 'Slack ID', user)
.then(leader => (results.leader = leader))
Expand Down

0 comments on commit ae07caf

Please sign in to comment.