From 1f9d36a9f39ec2729606cac60773c1c1fdcf0124 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 2 Mar 2023 17:24:30 +0530 Subject: [PATCH] fix: remove extra object wrapping Signed-off-by: Pranav C --- packages/nocodb/src/lib/controllers/dataController/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nocodb/src/lib/controllers/dataController/index.ts b/packages/nocodb/src/lib/controllers/dataController/index.ts index b9e7207d9a..522ed1be5e 100644 --- a/packages/nocodb/src/lib/controllers/dataController/index.ts +++ b/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) {