Prevent one single request to stop the process
This commit is contained in:
parent
c518d8a7fa
commit
92f1107e6c
|
@ -18,6 +18,7 @@ async function batchCreate(apiKey, appId, table, items, batchSize = 100) {
|
|||
let i = 0
|
||||
|
||||
async function createSingleRow(item) {
|
||||
try {
|
||||
const row = await createRow(apiKey, appId, table, item)
|
||||
console.log(
|
||||
`${table.name} - ${++i} of ${items.length} created (${
|
||||
|
@ -25,6 +26,9 @@ async function batchCreate(apiKey, appId, table, items, batchSize = 100) {
|
|||
}s)`
|
||||
)
|
||||
return row
|
||||
} catch {
|
||||
console.error("Error creating row", item)
|
||||
}
|
||||
}
|
||||
|
||||
const rows = []
|
||||
|
|
Loading…
Reference in New Issue