Add table field to Airtable update
This commit is contained in:
parent
b33a0fb3ad
commit
a5065411cc
|
@ -63,7 +63,11 @@ module AirtableModule {
|
||||||
type: QueryTypes.FIELDS,
|
type: QueryTypes.FIELDS,
|
||||||
customisable: true,
|
customisable: true,
|
||||||
fields: {
|
fields: {
|
||||||
id: {
|
recordId: {
|
||||||
|
type: DatasourceFieldTypes.STRING,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
table: {
|
||||||
type: DatasourceFieldTypes.STRING,
|
type: DatasourceFieldTypes.STRING,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
|
@ -112,13 +116,13 @@ module AirtableModule {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async update(query: { table: any; id: any; json: any }) {
|
async update(query: { table: any; recordId: any; json: any }) {
|
||||||
const { table, id, json } = query
|
const { table, recordId, json } = query
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return await this.client(table).update([
|
return await this.client(table).update([
|
||||||
{
|
{
|
||||||
id,
|
id: recordId,
|
||||||
fields: json,
|
fields: json,
|
||||||
},
|
},
|
||||||
])
|
])
|
||||||
|
|
Loading…
Reference in New Issue