Browse Source

WIP resolving issues from PR review

pull/4749/head
flisowna 2 years ago
parent
commit
2b6d1dba25
  1. 5
      packages/nocodb/src/lib/meta/api/dataApis/dataAliasApis.ts
  2. 1
      packages/nocodb/src/lib/meta/api/viewColumnApis.ts

5
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) {

1
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,

Loading…
Cancel
Save