Browse Source

fix(nocodb): import customUrl model issue

Ramesh Mane 6 days 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(
_customUrl: Pick<CustomUrl, 'id' | 'view_id'>,
_ncMeta = Noco.ncMeta,
): Promise<any> {
return;
}
): Promise<any> {}
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,
stringifyMetaProp,
} from '~/utils/modelUtils';
import { LinkToAnotherRecordColumn } from '~/models';
import { LinkToAnotherRecordColumn, CustomUrl } from '~/models';
import { cleanCommandPaletteCache } from '~/helpers/commandPaletteHelpers';
import CustomUrl from '~/models/CustomUrl';
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 FileReference } from './FileReference';
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 { validatePayload } from '~/helpers';
import { NcError } from '~/helpers/catchError';
import { BaseUser, Model, ModelRoleVisibility, View } from '~/models';
import CustomUrl from '~/models/CustomUrl';
import {
BaseUser,
Model,
ModelRoleVisibility,
View,
CustomUrl,
} from '~/models';
// todo: move
async function xcVisibilityMetaGet(

Loading…
Cancel
Save