From d57bf723941429fd72336231ed66432d73131e1e Mon Sep 17 00:00:00 2001 From: Max Wofford Date: Wed, 18 Sep 2019 10:40:44 -0400 Subject: [PATCH] Improve logging around aircreate --- src/interactions/leaderAdd.js | 2 +- src/utils.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/interactions/leaderAdd.js b/src/interactions/leaderAdd.js index 63d97730..e4a86f2e 100644 --- a/src/interactions/leaderAdd.js +++ b/src/interactions/leaderAdd.js @@ -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) }) }) } diff --git a/src/utils.js b/src/utils.js index a197ccac..6e1fbebd 100644 --- a/src/utils.js +++ b/src/utils.js @@ -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)