Skip to content
This repository has been archived by the owner on Aug 7, 2021. It is now read-only.

Commit

Permalink
鈾伙笍 Run on all rows
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Dec 15, 2020
1 parent 40698d3 commit cb8eed8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/index.ts
Expand Up @@ -36,8 +36,10 @@ export const airtableFill = async () => {
const tables = config<string>("airtableTable");
for await (const table of tables.split(",").map((i) => i.trim())) {
console.log("Starting update for table", table);
const rows = await getEmptyAirtableRows<Row>(table);
console.log("Got empty rows", rows.length);
// const rows = await getEmptyAirtableRows<Row>(table);
// console.log("Got empty rows", rows.length);
const rows = await getAllAirtableRows<Row>(table);
console.log("Got all rows", rows.length);
for await (const row of rows) {
try {
const newValues = await fill<Row>(row);
Expand Down

0 comments on commit cb8eed8

Please sign in to comment.