Fix some of the broken tests.

This commit is contained in:
Sam Rose 2024-04-16 17:36:51 +01:00
parent d77bb56e51
commit b01b260e39
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ class InternalBuilder {
const updatedKey = dbCore.removeKeyNumbering(key) const updatedKey = dbCore.removeKeyNumbering(key)
const isRelationshipField = updatedKey.includes(".") const isRelationshipField = updatedKey.includes(".")
if (!opts.relationship && !isRelationshipField) { if (!opts.relationship && !isRelationshipField) {
fn(`${getTableName(table)}.${updatedKey}`, value) fn(`${getTableAlias(table.name)}.${updatedKey}`, value)
} }
if (opts.relationship && isRelationshipField) { if (opts.relationship && isRelationshipField) {
const [filterTableName, property] = updatedKey.split(".") const [filterTableName, property] = updatedKey.split(".")