Browse Source

feat: add OldPathParams

pull/5444/head
Wing-Kam Wong 2 years ago committed by Pranav C
parent
commit
25c8560e82
  1. 12
      packages/nocodb-nest/src/modules/datas/helpers.ts

12
packages/nocodb-nest/src/modules/datas/helpers.ts

@ -2,9 +2,9 @@ import { nocoExecute } from 'nc-help';
import { isSystemColumn, UITypes } from 'nocodb-sdk';
import * as XLSX from 'xlsx';
import papaparse from 'papaparse';
import { BaseModelSqlv2 } from '../../db/BaseModelSqlv2'
import { NcError } from '../../helpers/catchError'
import getAst from '../../helpers/getAst'
import { BaseModelSqlv2 } from '../../db/BaseModelSqlv2';
import { NcError } from '../../helpers/catchError';
import getAst from '../../helpers/getAst';
import { Model, View } from '../../models';
import Base from '../../models/Base';
import Column from '../../models/Column';
@ -20,6 +20,12 @@ export interface PathParams {
viewName?: string;
}
export interface OldPathParams {
projectId: string;
tableName: string;
viewName?: string;
}
export async function getViewAndModelByAliasOrId(param: {
projectName: string;
tableName: string;

Loading…
Cancel
Save