Remove linkRows processing when importing CSVs
This commit is contained in:
parent
843b13613d
commit
a1ed5d2605
|
@ -93,19 +93,10 @@ exports.handleDataImport = async (appId, user, table, dataImport) => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// make sure link rows are up to date
|
finalData.push(row)
|
||||||
finalData.push(
|
|
||||||
linkRows.updateLinks({
|
|
||||||
appId,
|
|
||||||
eventType: linkRows.EventType.ROW_SAVE,
|
|
||||||
row,
|
|
||||||
tableId: row.tableId,
|
|
||||||
table,
|
|
||||||
})
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
await db.bulkDocs(await Promise.all(finalData))
|
await db.bulkDocs(finalData)
|
||||||
let response = await db.put(table)
|
let response = await db.put(table)
|
||||||
table._rev = response._rev
|
table._rev = response._rev
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue