Fix missing knex passthrough

This commit is contained in:
rijkvanzanten
2021-06-16 17:46:49 -04:00
parent ea79d692e4
commit 7ea10b2e21
2 changed files with 3 additions and 3 deletions

View File

@@ -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) {

View File

@@ -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;