Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwofford committed Sep 18, 2019
1 parent d57bf72 commit d68dfb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/interactions/leaderAdd.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const interactionLeaderAdd = (bot, message) => {
'Slack ID': taggedUser.slackUser.id,
'Full Name': profile.real_name || profile.display_name,
}
console.log(fields)
return airCreate('Leaders', fields).catch(err => {
console.error('Ran into issue creating new leader airtable record')
throw err
Expand Down
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const airPatch = (baseName, recordID, values) =>
})

export const airCreate = (baseName, fields) =>
new Promis((resolve, reject) => {
new Promise((resolve, reject) => {
console.log(fields)
base(baseName).create([{ fields }], (err, records) => {
if (err) {
Expand Down

0 comments on commit d68dfb6

Please sign in to comment.