1
0
Fork 0
mirror of synced 2024-07-19 13:15:49 +12:00

Fixing issue with aliasing.

This commit is contained in:
mike12345567 2023-12-01 14:14:44 +00:00
parent e76dc01859
commit 5c4dc0dc83

View file

@ -372,9 +372,9 @@ class InternalBuilder {
}
for (let [key, relationships] of Object.entries(tableSets)) {
const { toTable, throughTable } = JSON.parse(key)
const toAlias = aliases[toTable],
throughAlias = aliases[throughTable],
fromAlias = aliases[fromTable]
const toAlias = aliases[toTable] || toTable,
throughAlias = aliases[throughTable] || throughTable,
fromAlias = aliases[fromTable] || fromTable
let toTableWithSchema = this.tableNameWithSchema(toTable, {
alias: toAlias,
schema,