From d68dfb620cca781c4c4106c080575257fc27d952 Mon Sep 17 00:00:00 2001 From: Max Wofford Date: Wed, 18 Sep 2019 10:44:48 -0400 Subject: [PATCH] Fix typo --- src/interactions/leaderAdd.js | 1 + src/utils.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/interactions/leaderAdd.js b/src/interactions/leaderAdd.js index e4a86f2e..316dfced 100644 --- a/src/interactions/leaderAdd.js +++ b/src/interactions/leaderAdd.js @@ -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 diff --git a/src/utils.js b/src/utils.js index 6e1fbebd..2305d23e 100644 --- a/src/utils.js +++ b/src/utils.js @@ -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) {