From ba4b20bb62ccc2b93d7c46585a5a3d81fc447246 Mon Sep 17 00:00:00 2001 From: Mel O'Hagan Date: Wed, 10 Aug 2022 13:54:56 +0100 Subject: [PATCH] Use display field --- packages/server/src/integrations/airtable.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/server/src/integrations/airtable.ts b/packages/server/src/integrations/airtable.ts index 80cfd141b0..eaf4317953 100644 --- a/packages/server/src/integrations/airtable.ts +++ b/packages/server/src/integrations/airtable.ts @@ -63,7 +63,8 @@ module AirtableModule { type: QueryTypes.FIELDS, customisable: true, fields: { - recordID: { + id: { + display: "Record ID", type: DatasourceFieldTypes.STRING, required: true, }, @@ -116,13 +117,13 @@ module AirtableModule { } } - async update(query: { table: any; recordID: any; json: any }) { - const { table, recordID, json } = query + async update(query: { table: any; id: any; json: any }) { + const { table, id, json } = query try { return await this.client(table).update([ { - id: recordID, + id, fields: json, }, ])