mirror of
https://github.com/directus/directus.git
synced 2026-01-30 18:38:15 -05:00
Fix missing knex passthrough
This commit is contained in:
@@ -47,7 +47,7 @@ export class MetaService {
|
||||
|
||||
const permissions = parseFilter(permissionsRecord.permissions, this.accountability);
|
||||
|
||||
applyFilter(this.schema, dbQuery, permissions, collection);
|
||||
applyFilter(this.knex, this.schema, dbQuery, permissions, collection);
|
||||
}
|
||||
|
||||
const result = await dbQuery;
|
||||
@@ -77,7 +77,7 @@ export class MetaService {
|
||||
}
|
||||
|
||||
if (Object.keys(filter).length > 0) {
|
||||
applyFilter(this.schema, dbQuery, filter, collection);
|
||||
applyFilter(this.knex, this.schema, dbQuery, filter, collection);
|
||||
}
|
||||
|
||||
if (query.search) {
|
||||
|
||||
@@ -492,7 +492,7 @@ export async function applySearch(
|
||||
});
|
||||
}
|
||||
|
||||
export function applyAggregate(dbQuery: Knex.QueryBuilder, aggregate: Aggregate) {
|
||||
export function applyAggregate(dbQuery: Knex.QueryBuilder, aggregate: Aggregate): void {
|
||||
for (const [operation, fields] of Object.entries(aggregate)) {
|
||||
if (!fields) continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user