Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewStanciu authored and maxwofford committed Jan 18, 2020
1 parent b8ee75f commit e593a6c
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,13 +251,9 @@ export const getInfoForUser = user =>
airFind('People', 'Slack ID', user).then(
person => (results.person = person)
),
airFind('Ambassadors', 'Slack ID', user).then(
() => {
airGet('Ambassadors', 'IF(Permissioned = 1, "true", "false"').then(
permissionedAmbassador => {
results.permissionedAmbassador = permissionedAmbassador
}
)
airGet('Ambassadors', 'IF(Permissioned = 1, "true", "false"').then(
permissionedAmbassador => {
results.permissionedAmbassador = permissionedAmbassador
}
)
])
Expand Down

0 comments on commit e593a6c

Please sign in to comment.