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

Loading…
Cancel
Save