Remove linkRows processing when importing CSVs

This commit is contained in:
Andrew Kingston 2021-10-15 14:31:45 +01:00
parent 6049acd126
commit 18c88ac101
1 changed files with 2 additions and 11 deletions

View File

@ -93,19 +93,10 @@ exports.handleDataImport = async (appId, user, table, dataImport) => {
}
}
// make sure link rows are up to date
finalData.push(
linkRows.updateLinks({
appId,
eventType: linkRows.EventType.ROW_SAVE,
row,
tableId: row.tableId,
table,
})
)
finalData.push(row)
}
await db.bulkDocs(await Promise.all(finalData))
await db.bulkDocs(finalData)
let response = await db.put(table)
table._rev = response._rev
}