Remove linkRows processing when importing CSVs

This commit is contained in:
Andrew Kingston 2021-10-15 14:31:45 +01:00
parent 843b13613d
commit a1ed5d2605
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(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
} }