Browse Source

fix: throw error if invalid param passed to count method

pull/6974/head
Pranav C 12 months ago
parent
commit
e81d1f32be
  1. 2
      packages/nocodb/src/services/datas.service.ts

2
packages/nocodb/src/services/datas.service.ts

@ -52,7 +52,7 @@ export class DatasService {
dbDriver: await NcConnectionMgrv2.get(source),
});
const countArgs: any = { ...param.query };
const countArgs: any = { ...param.query, throwErrorIfInvalidParams: true };
try {
countArgs.filterArr = JSON.parse(countArgs.filterArrJson);
} catch (e) {}

Loading…
Cancel
Save