Browse Source

fix: add missing await

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

4
packages/nocodb/src/lib/controllers/public/publicDataApis.ts

@ -5,7 +5,7 @@ import catchError from '../../meta/helpers/catchError';
import { publicDataService } from '../../services'; import { publicDataService } from '../../services';
export async function dataList(req: Request, res: Response) { export async function dataList(req: Request, res: Response) {
const pagedResponse = publicDataService.dataList({ const pagedResponse = await publicDataService.dataList({
query: req.query, query: req.query,
password: req.headers?.['xc-password'] as string, password: req.headers?.['xc-password'] as string,
sharedViewUuid: req.params.sharedViewUuid, sharedViewUuid: req.params.sharedViewUuid,
@ -36,7 +36,7 @@ async function dataInsert(req: Request & { files: any[] }, res: Response) {
} }
async function relDataList(req, res) { async function relDataList(req, res) {
const pagedResponse = publicDataService.relDataList({ const pagedResponse = await publicDataService.relDataList({
query: req.query, query: req.query,
password: req.headers?.['xc-password'] as string, password: req.headers?.['xc-password'] as string,
sharedViewUuid: req.params.sharedViewUuid, sharedViewUuid: req.params.sharedViewUuid,

Loading…
Cancel
Save