1
0
Fork 0
mirror of synced 2024-07-02 13:01:09 +12:00
This commit is contained in:
Mel O'Hagan 2022-09-12 14:22:07 +01:00
parent 3b928e0ffb
commit 0ed5647782

View file

@ -371,7 +371,10 @@ module External {
const toColumn = `${linkedTable.name}.${relationship.to}` const toColumn = `${linkedTable.name}.${relationship.to}`
// this is important when working with multiple relationships // this is important when working with multiple relationships
// between the same tables, don't want to overlap/multiply the relations // between the same tables, don't want to overlap/multiply the relations
if (!relationship.through && row[fromColumn]?.toString() !== row[toColumn]?.toString()) { if (
!relationship.through &&
row[fromColumn]?.toString() !== row[toColumn]?.toString()
) {
continue continue
} }
let linked = basicProcessing(row, linkedTable) let linked = basicProcessing(row, linkedTable)