From 610ba3c4d4b0843a9588fcda235e529cc0a10192 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 2 Mar 2023 18:53:09 +0530 Subject: [PATCH] fix: add missing await Signed-off-by: Pranav C --- packages/nocodb/src/lib/controllers/public/publicDataApis.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nocodb/src/lib/controllers/public/publicDataApis.ts b/packages/nocodb/src/lib/controllers/public/publicDataApis.ts index 77ba40c157..6a77be7c01 100644 --- a/packages/nocodb/src/lib/controllers/public/publicDataApis.ts +++ b/packages/nocodb/src/lib/controllers/public/publicDataApis.ts @@ -5,7 +5,7 @@ import catchError from '../../meta/helpers/catchError'; import { publicDataService } from '../../services'; export async function dataList(req: Request, res: Response) { - const pagedResponse = publicDataService.dataList({ + const pagedResponse = await publicDataService.dataList({ query: req.query, password: req.headers?.['xc-password'] as string, sharedViewUuid: req.params.sharedViewUuid, @@ -36,7 +36,7 @@ async function dataInsert(req: Request & { files: any[] }, res: Response) { } async function relDataList(req, res) { - const pagedResponse = publicDataService.relDataList({ + const pagedResponse = await publicDataService.relDataList({ query: req.query, password: req.headers?.['xc-password'] as string, sharedViewUuid: req.params.sharedViewUuid,