Merge pull request #1268 from Budibase/hotfix/airtable
Allow airtable numRecords arg
This commit is contained in:
commit
4220d44709
|
@ -61,9 +61,11 @@ async function enrichQueryFields(fields, parameters) {
|
|||
if (typeof fields[key] === "object") {
|
||||
// enrich nested fields object
|
||||
enrichedQuery[key] = await enrichQueryFields(fields[key], parameters)
|
||||
} else {
|
||||
} else if (typeof fields[key] === "string") {
|
||||
// enrich string value as normal
|
||||
enrichedQuery[key] = await processString(fields[key], parameters)
|
||||
} else {
|
||||
enrichedQuery[key] = fields[key]
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -40,6 +40,10 @@ const SCHEMA = {
|
|||
type: FIELD_TYPES.STRING,
|
||||
required: true,
|
||||
},
|
||||
numRecords: {
|
||||
type: FIELD_TYPES.NUMBER,
|
||||
default: 10,
|
||||
},
|
||||
},
|
||||
},
|
||||
update: {
|
||||
|
|
Loading…
Reference in New Issue