1
0
Fork 0
mirror of synced 2024-07-13 18:26:06 +12:00

Remove any

This commit is contained in:
Adria Navarro 2023-10-11 13:55:35 +02:00
parent 8fa71e2e1b
commit 0720aa8b98

View file

@ -577,7 +577,7 @@ export class ExternalRequest<T extends Operation> {
definition.toPrimary = linkTable.primary[0]
} else {
// if no foreign key specified then use the name of the field in other table
definition.from = (field as any).foreignKey || table.primary[0]
definition.from = field.foreignKey || table.primary[0]
definition.to = field.fieldName
}
relationships.push(definition)