From cb8eed84fcaeb4f98be6246354dc14f63db1eba4 Mon Sep 17 00:00:00 2001 From: Anand Chowdhary Date: Wed, 16 Dec 2020 01:56:07 +0530 Subject: [PATCH] :recycle: Run on all rows --- src/index.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 1363460..ba025ea 100644 --- a/src/index.ts +++ b/src/index.ts @@ -36,8 +36,10 @@ export const airtableFill = async () => { const tables = config("airtableTable"); for await (const table of tables.split(",").map((i) => i.trim())) { console.log("Starting update for table", table); - const rows = await getEmptyAirtableRows(table); - console.log("Got empty rows", rows.length); + // const rows = await getEmptyAirtableRows(table); + // console.log("Got empty rows", rows.length); + const rows = await getAllAirtableRows(table); + console.log("Got all rows", rows.length); for await (const row of rows) { try { const newValues = await fill(row);