diff --git a/packages/nocodb/src/models/CustomUrl.ts b/packages/nocodb/src/models/CustomUrl.ts index 0e053a14e2..0bc9725548 100644 --- a/packages/nocodb/src/models/CustomUrl.ts +++ b/packages/nocodb/src/models/CustomUrl.ts @@ -60,7 +60,10 @@ export default class CustomUrl implements CustomUrlType { static async delete( _customUrl: Pick, _ncMeta = Noco.ncMeta, - ): Promise { - return; - } + ): Promise {} + + static async bulkDelete( + _params: Pick, + _ncMeta = Noco.ncMeta, + ): Promise {} } diff --git a/packages/nocodb/src/models/View.ts b/packages/nocodb/src/models/View.ts index f64399ac09..fa3ffcf7e2 100644 --- a/packages/nocodb/src/models/View.ts +++ b/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'); diff --git a/packages/nocodb/src/models/index.ts b/packages/nocodb/src/models/index.ts index ed05733c38..e217535732 100644 --- a/packages/nocodb/src/models/index.ts +++ b/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'; diff --git a/packages/nocodb/src/services/views.service.ts b/packages/nocodb/src/services/views.service.ts index 6de8e3fb80..8db0296e59 100644 --- a/packages/nocodb/src/services/views.service.ts +++ b/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(