Browse Source

fix(nocodb): import customUrl model issue

Ramesh Mane 1 week ago
parent
commit
1ff1279982
  1. 9
      packages/nocodb/src/models/CustomUrl.ts
  2. 3
      packages/nocodb/src/models/View.ts
  3. 1
      packages/nocodb/src/models/index.ts
  4. 9
      packages/nocodb/src/services/views.service.ts

9
packages/nocodb/src/models/CustomUrl.ts

@ -60,7 +60,10 @@ export default class CustomUrl implements CustomUrlType {
static async delete( static async delete(
_customUrl: Pick<CustomUrl, 'id' | 'view_id'>, _customUrl: Pick<CustomUrl, 'id' | 'view_id'>,
_ncMeta = Noco.ncMeta, _ncMeta = Noco.ncMeta,
): Promise<any> { ): Promise<any> {}
return;
} static async bulkDelete(
_params: Pick<CustomUrl, 'fk_workspace_id' | 'base_id' | 'fk_model_id'>,
_ncMeta = Noco.ncMeta,
): Promise<any> {}
} }

3
packages/nocodb/src/models/View.ts

@ -39,9 +39,8 @@ import {
prepareForResponse, prepareForResponse,
stringifyMetaProp, stringifyMetaProp,
} from '~/utils/modelUtils'; } from '~/utils/modelUtils';
import { LinkToAnotherRecordColumn } from '~/models'; import { LinkToAnotherRecordColumn, CustomUrl } from '~/models';
import { cleanCommandPaletteCache } from '~/helpers/commandPaletteHelpers'; import { cleanCommandPaletteCache } from '~/helpers/commandPaletteHelpers';
import CustomUrl from '~/models/CustomUrl';
const { v4: uuidv4 } = require('uuid'); const { v4: uuidv4 } = require('uuid');

1
packages/nocodb/src/models/index.ts

@ -48,3 +48,4 @@ export { default as Integration } from './Integration';
export { default as IntegrationStore } from './IntegrationStore'; export { default as IntegrationStore } from './IntegrationStore';
export { default as FileReference } from './FileReference'; export { default as FileReference } from './FileReference';
export { default as ButtonColumn } from './ButtonColumn'; export { default as ButtonColumn } from './ButtonColumn';
export { default as CustomUrl } from './CustomUrl';

9
packages/nocodb/src/services/views.service.ts

@ -9,8 +9,13 @@ import type { NcContext, NcRequest } from '~/interface/config';
import { AppHooksService } from '~/services/app-hooks/app-hooks.service'; import { AppHooksService } from '~/services/app-hooks/app-hooks.service';
import { validatePayload } from '~/helpers'; import { validatePayload } from '~/helpers';
import { NcError } from '~/helpers/catchError'; import { NcError } from '~/helpers/catchError';
import { BaseUser, Model, ModelRoleVisibility, View } from '~/models'; import {
import CustomUrl from '~/models/CustomUrl'; BaseUser,
Model,
ModelRoleVisibility,
View,
CustomUrl,
} from '~/models';
// todo: move // todo: move
async function xcVisibilityMetaGet( async function xcVisibilityMetaGet(

Loading…
Cancel
Save