This commit is contained in:
mike12345567 2021-06-30 14:54:53 +01:00
parent d17a399ee6
commit a6549a26b8
1 changed files with 3 additions and 1 deletions

View File

@ -30,7 +30,9 @@ exports.inputProcessing = (row, table, allTables) => {
const linkTable = allTables[linkTableName]
if (!field.through) {
// we don't really support composite keys for relationships, this is why [0] is used
newRow[field.foreignKey || linkTable.primary] = breakRowIdField(row[key][0])[0]
newRow[field.foreignKey || linkTable.primary] = breakRowIdField(
row[key][0]
)[0]
} else {
row[key].map(relationship => {
// we don't really support composite keys for relationships, this is why [0] is used