Skip to content

Commit

Permalink
Fixes source-airtable functions
Browse files Browse the repository at this point in the history
  • Loading branch information
wraybowling committed May 13, 2021
1 parent 6d86ffa commit 780ab61
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/source-airtable/index.js
Expand Up @@ -26,7 +26,7 @@ class AirtableSource {
})
}

loadRecordsToCollections = async function (options) {
async loadRecordsToCollections (options) {
for (const table of options.tables) {
const collection = this.addCollection({
camelCasedFieldNames: true,
Expand All @@ -44,7 +44,7 @@ class AirtableSource {
}
}

addRecordToNode = function (item, table, collection) {
addRecordToNode (item, table, collection) {
if (table.links && table.links.length) {
item = this.addLinkedRecords(item, table)
}
Expand All @@ -55,7 +55,7 @@ class AirtableSource {
})
}

addLinkedRecords = function (item, table) {
addLinkedRecords (item, table) {
table.links.forEach(link => {
if (!item.fields[link.fieldName]) {
return item
Expand Down

0 comments on commit 780ab61

Please sign in to comment.