From aa7dccdb885d2cbde67650174269b101018a531f Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Fri, 10 Mar 2023 16:14:52 +0800 Subject: [PATCH] refactor(nocodb): return pagedResponse --- .../src/lib/controllers/publicControllers/publicData.ctl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nocodb/src/lib/controllers/publicControllers/publicData.ctl.ts b/packages/nocodb/src/lib/controllers/publicControllers/publicData.ctl.ts index 8117760fe5..76d708e241 100644 --- a/packages/nocodb/src/lib/controllers/publicControllers/publicData.ctl.ts +++ b/packages/nocodb/src/lib/controllers/publicControllers/publicData.ctl.ts @@ -11,7 +11,7 @@ export async function dataList(req: Request, res: Response) { password: req.headers?.['xc-password'] as string, sharedViewUuid: req.params.sharedViewUuid, }); - res.json({ data: pagedResponse }); + res.json(pagedResponse); } // todo: Handle the error case where view doesnt belong to model