diff --git a/packages/backend-core/src/sql/sql.ts b/packages/backend-core/src/sql/sql.ts index d9379773ff..bb3133f852 100644 --- a/packages/backend-core/src/sql/sql.ts +++ b/packages/backend-core/src/sql/sql.ts @@ -467,7 +467,7 @@ class InternalBuilder { const { $and } = filters query = query.where(x => { for (const condition of $and.conditions) { - x = this.addFilters(x, condition, table, opts) + x = this.addFilters(x, condition, opts) } }) } @@ -476,7 +476,7 @@ class InternalBuilder { const { $or } = filters query = query.where(x => { for (const condition of $or.conditions) { - x = this.addFilters(x, { ...condition, allOr: true }, table, opts) + x = this.addFilters(x, { ...condition, allOr: true }, opts) } }) }