From e99f0ed1816a70603df96efc1aa60c271454d40b Mon Sep 17 00:00:00 2001 From: Max Wofford Date: Wed, 18 Sep 2019 12:11:24 -0400 Subject: [PATCH] Attempt to fix airCreate passing wrong fields to airtable --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index de8bad2b..fa2de587 100644 --- a/src/utils.js +++ b/src/utils.js @@ -29,7 +29,7 @@ export const airCreate = (baseName, fields) => console.log( `I'm asking Airtable to create a new record in the ${baseName} base at ${timestamp}` ) - base(baseName).create({ fields }, (err, record) => { + base(baseName).create({ ...fields }, (err, record) => { if (err) { reject(err) }