Skip to content

Commit

Permalink
Improve logging around aircreate
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwofford committed Sep 18, 2019
1 parent 3bb7b2c commit d57bf72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/interactions/leaderAdd.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const interactionLeaderAdd = (bot, message) => {
console.log('TODO: validate leader can be assigned to club')
})
.catch(err => {
throw err
console.error(err)
})
})
}
Expand Down
1 change: 1 addition & 0 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const airPatch = (baseName, recordID, values) =>

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

0 comments on commit d57bf72

Please sign in to comment.