Making sure filters are always added to end, this is important for OR situations.
This commit is contained in:
parent
48672244f4
commit
a1fae4d799
|
@ -371,10 +371,11 @@ class InternalBuilder {
|
||||||
),
|
),
|
||||||
castedTypeValue.values
|
castedTypeValue.values
|
||||||
)
|
)
|
||||||
} else if (!opts?.relationship && !isRelationshipField) {
|
} else if (!isRelationshipField) {
|
||||||
const alias = getTableAlias(tableName)
|
const alias = getTableAlias(tableName)
|
||||||
fn(alias ? `${alias}.${updatedKey}` : updatedKey, value)
|
fn(alias ? `${alias}.${updatedKey}` : updatedKey, value)
|
||||||
} else if (opts?.relationship && isRelationshipField) {
|
}
|
||||||
|
if (opts?.relationship && isRelationshipField) {
|
||||||
const [filterTableName, property] = updatedKey.split(".")
|
const [filterTableName, property] = updatedKey.split(".")
|
||||||
const alias = getTableAlias(filterTableName)
|
const alias = getTableAlias(filterTableName)
|
||||||
fn(alias ? `${alias}.${property}` : property, value)
|
fn(alias ? `${alias}.${property}` : property, value)
|
||||||
|
|
Loading…
Reference in New Issue