1
0
Fork 0
mirror of synced 2024-10-01 09:38:55 +13:00

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

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
}