Linting.
This commit is contained in:
parent
7fb1e80196
commit
a5c3d4f86f
|
@ -157,7 +157,6 @@ module External {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
const linkTablePrimary = linkTable.primary[0]
|
const linkTablePrimary = linkTable.primary[0]
|
||||||
if (!isMany(field)) {
|
if (!isMany(field)) {
|
||||||
|
|
||||||
newRow[field.foreignKey || linkTablePrimary] = breakRowIdField(
|
newRow[field.foreignKey || linkTablePrimary] = breakRowIdField(
|
||||||
row[key][0]
|
row[key][0]
|
||||||
)[0]
|
)[0]
|
||||||
|
@ -166,9 +165,7 @@ module External {
|
||||||
const isUpdate = !field.through
|
const isUpdate = !field.through
|
||||||
const thisKey: string = isUpdate ? "id" : linkTablePrimary
|
const thisKey: string = isUpdate ? "id" : linkTablePrimary
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
const otherKey: string = isUpdate
|
const otherKey: string = isUpdate ? field.foreignKey : tablePrimary
|
||||||
? field.foreignKey
|
|
||||||
: tablePrimary
|
|
||||||
row[key].map((relationship: any) => {
|
row[key].map((relationship: any) => {
|
||||||
// we don't really support composite keys for relationships, this is why [0] is used
|
// we don't really support composite keys for relationships, this is why [0] is used
|
||||||
manyRelationships.push({
|
manyRelationships.push({
|
||||||
|
|
Loading…
Reference in New Issue