import { Airtable } from "https://deno.land/x/airtable/mod.ts";
type Airtable = {
apiKey: string;
};
type AirtableTable = {
baseId: string;
tableName: string;
};
export async function main(
atCon: Airtable,
atTable: AirtableTable,
recordId: string,
newRecord: object,
) {
const airtable = new Airtable({...atCon, ...atTable});
const updateSingleRecord = await airtable.update(recordId, newRecord);
return updateSingleRecord;
}
Submitted by hugo697 494 days ago
import { Airtable } from "https://deno.land/x/airtable/mod.ts";
type Airtable = {
apiKey: string;
};
type AirtableTable = {
baseId: string;
tableName: string;
};
export async function main(
at_con: Airtable,
at_table: AirtableTable,
recordId: string,
newRecord: object,
) {
const airtable = new Airtable({...at_con, ...at_table});
const updateSingleRecord = await airtable.update(recordId, newRecord);
return updateSingleRecord;
}
Submitted by hugo697 494 days ago
import { Airtable } from "https://deno.land/x/airtable/mod.ts";
type Airtable = {
apiKey: string;
};
type AirtableTable = {
baseId: string;
tableName: string;
};
export async function main(
at_con: Airtable,
at_table: AirtableTable,
recordId: string,
newRecord: object,
) {
const airtable = new Airtable({...at_con, ...at_table});
const updateSingleRecord = await airtable.update(recordId, newRecord);
return console.log(updateSingleRecord);
}
Submitted by hugo697 494 days ago