1
0
Fork 0
mirror of synced 2024-09-29 16:51:33 +13:00
This commit is contained in:
mike12345567 2021-06-30 14:54:53 +01:00
parent d17a399ee6
commit a6549a26b8

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