Browse Source

fix: remove unnecessary decorator

pull/6612/head
Pranav C 1 year ago
parent
commit
e65ee4f84f
  1. 1
      packages/nocodb/src/controllers/bulk-data-alias.controller.ts
  2. 2
      packages/nocodb/src/controllers/data-alias-nested.controller.ts

1
packages/nocodb/src/controllers/bulk-data-alias.controller.ts

@ -17,7 +17,6 @@ import { Acl } from '~/middlewares/extract-ids/extract-ids.middleware';
import { DataApiLimiterGuard } from '~/guards/data-api-limiter.guard'; import { DataApiLimiterGuard } from '~/guards/data-api-limiter.guard';
@Controller() @Controller()
@Throttle({ meta: {} })
@UseGuards(DataApiLimiterGuard, GlobalGuard) @UseGuards(DataApiLimiterGuard, GlobalGuard)
export class BulkDataAliasController { export class BulkDataAliasController {
constructor(private bulkDataAliasService: BulkDataAliasService) {} constructor(private bulkDataAliasService: BulkDataAliasService) {}

2
packages/nocodb/src/controllers/data-alias-nested.controller.ts

@ -8,14 +8,12 @@ import {
Request, Request,
UseGuards, UseGuards,
} from '@nestjs/common'; } from '@nestjs/common';
import { Throttle } from '@nestjs/throttler';
import { DataAliasNestedService } from '~/services/data-alias-nested.service'; import { DataAliasNestedService } from '~/services/data-alias-nested.service';
import { GlobalGuard } from '~/guards/global/global.guard'; import { GlobalGuard } from '~/guards/global/global.guard';
import { Acl } from '~/middlewares/extract-ids/extract-ids.middleware'; import { Acl } from '~/middlewares/extract-ids/extract-ids.middleware';
import { DataApiLimiterGuard } from '~/guards/data-api-limiter.guard'; import { DataApiLimiterGuard } from '~/guards/data-api-limiter.guard';
@Controller() @Controller()
@Throttle({ meta: {} })
@UseGuards(DataApiLimiterGuard, GlobalGuard) @UseGuards(DataApiLimiterGuard, GlobalGuard)
export class DataAliasNestedController { export class DataAliasNestedController {
constructor(private dataAliasNestedService: DataAliasNestedService) {} constructor(private dataAliasNestedService: DataAliasNestedService) {}

Loading…
Cancel
Save