From 08130e82b1192a53e391b422eee4547b27917ff9 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Fri, 3 Mar 2023 15:39:12 +0530 Subject: [PATCH] refactor: remove unused import statements Signed-off-by: Pranav C --- packages/nocodb/src/lib/controllers/tableController.ts | 8 -------- packages/nocodb/src/lib/services/tableService.ts | 6 +++++- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/packages/nocodb/src/lib/controllers/tableController.ts b/packages/nocodb/src/lib/controllers/tableController.ts index 4494f6be24..9a3dc3c0cb 100644 --- a/packages/nocodb/src/lib/controllers/tableController.ts +++ b/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) { res.json( diff --git a/packages/nocodb/src/lib/services/tableService.ts b/packages/nocodb/src/lib/services/tableService.ts index a4d63e61c9..54d2d863b6 100644 --- a/packages/nocodb/src/lib/services/tableService.ts +++ b/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(