From 2b6d1dba25756cf9285861fa9c387f08fd3c8e79 Mon Sep 17 00:00:00 2001 From: flisowna Date: Tue, 10 Jan 2023 13:29:22 +0100 Subject: [PATCH] WIP resolving issues from PR review --- packages/nocodb/src/lib/meta/api/dataApis/dataAliasApis.ts | 5 +---- packages/nocodb/src/lib/meta/api/viewColumnApis.ts | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/nocodb/src/lib/meta/api/dataApis/dataAliasApis.ts b/packages/nocodb/src/lib/meta/api/dataApis/dataAliasApis.ts index 91c85a0efb..e3a340268b 100644 --- a/packages/nocodb/src/lib/meta/api/dataApis/dataAliasApis.ts +++ b/packages/nocodb/src/lib/meta/api/dataApis/dataAliasApis.ts @@ -14,10 +14,7 @@ import getAst from '../../../db/sql-data-mapper/lib/sql/helpers/getAst'; // todo: Handle the error case where view doesnt belong to model async function dataList(req: Request, res: Response) { const { model, view } = await getViewAndModelFromRequestByAliasOrId(req); - const FOO_DATA = await getDataList(model, view, req); - console.log('FOO_DATA'); - console.log(FOO_DATA); - res.json(FOO_DATA); + res.json(await getDataList(model, view, req)); } async function dataFindOne(req: Request, res: Response) { diff --git a/packages/nocodb/src/lib/meta/api/viewColumnApis.ts b/packages/nocodb/src/lib/meta/api/viewColumnApis.ts index 244146ae6b..2fc4df7625 100644 --- a/packages/nocodb/src/lib/meta/api/viewColumnApis.ts +++ b/packages/nocodb/src/lib/meta/api/viewColumnApis.ts @@ -8,7 +8,6 @@ export async function columnList(req: Request, res: Response) { res.json(await View.getColumns(req.params.viewId)); } export async function columnAdd(req: Request, res: Response) { - console.log('FOO - columnAdd'); const viewColumn = await View.insertOrUpdateColumn( req.params.viewId, req.body.fk_column_id,