Browse Source

fix: remove extra object wrapping

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5239/head
Pranav C 2 years ago
parent
commit
1f9d36a9f3
  1. 4
      packages/nocodb/src/lib/controllers/dataController/index.ts

4
packages/nocodb/src/lib/controllers/dataController/index.ts

@ -42,14 +42,14 @@ async function dataGroupBy(req: Request, res: Response) {
}
async function dataCount(req: Request, res: Response) {
const count = await dataService.dataCount({
const countResult = await dataService.dataCount({
query: req.query,
projectName: req.params.projectName,
tableName: req.params.tableName,
viewName: req.params.viewName,
});
res.json({ count });
res.json(countResult);
}
async function dataInsert(req: Request, res: Response) {

Loading…
Cancel
Save