From 5232a37af713fd45d5d35259161ec4f1bd3de18c Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 7 Nov 2024 07:22:13 +0000 Subject: [PATCH] fix: v2 api path correction --- .../modules/jobs/jobs/export-import/duplicate.controller.ts | 2 +- packages/nocodb/src/schema/swagger.json | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/nocodb/src/modules/jobs/jobs/export-import/duplicate.controller.ts b/packages/nocodb/src/modules/jobs/jobs/export-import/duplicate.controller.ts index 98718cdce3..27ebb1e5de 100644 --- a/packages/nocodb/src/modules/jobs/jobs/export-import/duplicate.controller.ts +++ b/packages/nocodb/src/modules/jobs/jobs/export-import/duplicate.controller.ts @@ -32,7 +32,7 @@ export class DuplicateController { @Post([ '/api/v1/db/meta/duplicate/:workspaceId/shared/:sharedBaseId', - '/api/v1/meta/duplicate/:workspaceId/shared/:sharedBaseId', + '/api/v2/meta/duplicate/:workspaceId/shared/:sharedBaseId', ]) @HttpCode(200) @Acl('duplicateSharedBase', { diff --git a/packages/nocodb/src/schema/swagger.json b/packages/nocodb/src/schema/swagger.json index 815c7ed11c..3842037747 100644 --- a/packages/nocodb/src/schema/swagger.json +++ b/packages/nocodb/src/schema/swagger.json @@ -4633,8 +4633,7 @@ ] } }, - - "/api/v2/meta/duplicate/:workspaceId/shared/{sharedBaseId}": { + "/api/v2/meta/duplicate/{workspaceId}/shared/{sharedBaseId}": { "post": { "summary": "Duplicate Shared Base", "operationId": "base-duplicate-shared",