Browse Source

refactor: remove unused import statements

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5239/head
Pranav C 2 years ago
parent
commit
08130e82b1
  1. 8
      packages/nocodb/src/lib/controllers/tableController.ts
  2. 6
      packages/nocodb/src/lib/services/tableService.ts

8
packages/nocodb/src/lib/controllers/tableController.ts

@ -1,17 +1,9 @@
import { Request, Response, Router } from 'express';
import DOMPurify from 'isomorphic-dompurify';
import { TableListType, TableReqType, TableType } from 'nocodb-sdk';
import ProjectMgrv2 from '../db/sql-mgr/v2/ProjectMgrv2';
import { metaApiMetrics } from '../meta/helpers/apiMetrics';
import { NcError } from '../meta/helpers/catchError';
import getTableNameAlias from '../meta/helpers/getTableName';
import ncMetaAclMw from '../meta/helpers/ncMetaAclMw';
import { PagedResponseImpl } from '../meta/helpers/PagedResponse';
import Model from '../models/Model';
import Project from '../models/Project';
import { T } from 'nc-help';
import { tableService } from '../services';
import NcConnectionMgrv2 from '../utils/common/NcConnectionMgrv2';
export async function tableList(req: Request, res: Response<TableListType>) {
res.json(

6
packages/nocodb/src/lib/services/tableService.ts

@ -197,7 +197,11 @@ export async function tableDelete(param: { tableId: string; user: User }) {
return table.delete();
}
export async function tableUpdate(param: { tableId: string; table: TableReqType; projectId?:string }) {
export async function tableUpdate(param: {
tableId: string;
table: TableReqType;
projectId?: string;
}) {
const model = await Model.get(param.tableId);
const project = await Project.getWithInfo(

Loading…
Cancel
Save