Use display field
This commit is contained in:
parent
15fe3650dc
commit
ba4b20bb62
|
@ -63,7 +63,8 @@ module AirtableModule {
|
||||||
type: QueryTypes.FIELDS,
|
type: QueryTypes.FIELDS,
|
||||||
customisable: true,
|
customisable: true,
|
||||||
fields: {
|
fields: {
|
||||||
recordID: {
|
id: {
|
||||||
|
display: "Record ID",
|
||||||
type: DatasourceFieldTypes.STRING,
|
type: DatasourceFieldTypes.STRING,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
|
@ -116,13 +117,13 @@ module AirtableModule {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async update(query: { table: any; recordID: any; json: any }) {
|
async update(query: { table: any; id: any; json: any }) {
|
||||||
const { table, recordID, json } = query
|
const { table, id, json } = query
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return await this.client(table).update([
|
return await this.client(table).update([
|
||||||
{
|
{
|
||||||
id: recordID,
|
id,
|
||||||
fields: json,
|
fields: json,
|
||||||
},
|
},
|
||||||
])
|
])
|
||||||
|
|
Loading…
Reference in New Issue