Browse Source

fix: shared base delete api correction

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5444/head
Pranav C 2 years ago
parent
commit
4775de3167
  1. 8
      packages/nocodb-nest/src/modules/shared-bases/shared-bases.controller.ts

8
packages/nocodb-nest/src/modules/shared-bases/shared-bases.controller.ts

@ -58,12 +58,14 @@ export class SharedBasesController {
@Delete('/api/v1/db/meta/projects/:projectId/shared')
@Acl('disableSharedBaseLink')
async disableSharedBaseLink(req, res): Promise<any> {
async disableSharedBaseLink(
@Param('projectId') projectId: string,
): Promise<any> {
const sharedBase = await this.sharedBasesService.disableSharedBaseLink({
projectId: req.params.projectId,
projectId,
});
res.json(sharedBase);
return sharedBase;
}
@Get('/api/v1/db/meta/projects/:projectId/shared')

Loading…
Cancel
Save